milamberspace commented on issue #6314:
URL: https://github.com/apache/jmeter/issues/6314#issuecomment-7234030686
Thanks for the report. This is working as intended: headers from the HTTP
Header Manager are meant for the target server and are not sent on the proxy
`CONNECT` request. That request goes to the proxy in clear text, so forwarding
headers such as `Authorization` or `Cookie` there would leak them. Browsers and
curl behave the same way.
For proxy authentication, please use the proxy username and password fields
of the HTTP Request sampler ("Proxy Server" section), or the `-u`/`-a`
command-line options, or the `http.proxyUser`/`http.proxyPass` properties.
HttpClient then sends `Proxy-Authorization` on `CONNECT` when the proxy answers
`407`. Please also remove `Proxy-Authorization` from the Header Manager: as
your log shows, it is otherwise sent to the target server inside the tunnel,
which exposes your proxy credentials to that server.
Closing as not a bug. If your proxy does not send a `407` challenge and the
built-in proxy credentials therefore don't work, feel free to reopen with the
proxy type and a debug log.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]