--header
option falls short.CONNECT
to the proxy that establishes a tunnel to the remote server and then it sends the request to that server. That first CONNECT
is only issued to the proxy and you may want to make sure only that receives your special header, and send another set of custom headers to the remote server.User-Agent:
only to the proxy: