I'm making a POST request to upload a picture to a website.
In the page, there is one FileUpload
and one input
(textBox)
and in fiddler I found out that the page is sending some data using Multipart Post request mode (Content Disposition: multipart-formdata;)
Everything seems to be OK, coz in fiddler everything is the same about what my app is posting and what the page is sending... Just not about headers order...
My question is that is it really important to put headers in a right order? and if yes, how can I do it? (as we are just setting some properties in request, there is no where to set the order...)
thanks for any advise...
Akamai will block you if you have the wrong order.
They use the implicit ordering of specific clients to detect malicious user agents. See my blog the topic:
http://gwillem.gitlab.io/2017/05/02/http-header-order-is-important/
I my experience with Chrome's webRequest api, there is never any guaranteed order of http headers. So, on that front, header order doesn't matter.
The order of HTTP Headers doesn't matter for headers with different names. If there are multiple headers with the same name, however, the order is important.
See RFC 2616