c# - httpwebrequest order of request -


i using httpwebrequest send requests in c#

the request should this:

post https://website.com/file http/1.1 host: api.website.com user-agent: useragent content-length: 81 accept: */* accept-language: en;q=1, fr;q=0.9, de;q=0.8, ja;q=0.7, nl;q=0.6, it;q=0.5 content-type: application/x-www-form-urlencoded; charset=utf-8 accept-encoding: gzip, deflate connection: keep-alive 

but showing this:

post https://website.com/file http/1.1 accept-encoding: gzip, deflate accept-language: en;q=1, fr;q=0.9, de;q=0.8, ja;q=0.7, nl;q=0.6, it;q=0.5 user-agent: useragent accept: */* content-type: application/x-www-form-urlencoded; charset=utf-8 host: api.website.com content-length: 97 connection: keep-alive 

i tried search on how change order of httpwebrequest not find anything.


Comments