You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Murat Balkan <mr...@gmail.com> on 2021/09/03 16:42:32 UTC
Changing the order of HTTP Headers
Hi all,
Is it possible to change the order of the HTTP headers sent by the HttpGet
request? (HttpClient 4.5)
I am specifically looking for sending the Host header first. Although I can
influence the order with setHeader and addHeader methods for headers like
HttpHeaders.USER_AGENT, Accept and Connection, the Host header is set by
the HttpClient automatically and being sent as the last header.
Thanks,
Murat