milamberspace commented on PR #6864: URL: https://github.com/apache/jmeter/pull/6864#issuecomment-7234029874
Thanks for the work on this, and for the well-built proxy test. After looking at it more closely, I don't think we should copy the HTTP Header Manager headers to the `CONNECT` request, so I'm going to close this PR: - `CONNECT` is addressed to the proxy, and it is sent in clear text before the TLS tunnel exists. Header Manager entries are meant for the origin server and often carry secrets (`Authorization`, `Cookie`, API keys). Sending them on `CONNECT` would expose them to the proxy and to the network between JMeter and the proxy, which defeats the purpose of HTTPS. Browsers only send `Host`, `User-Agent` and `Proxy-Authorization` there, and curl keeps server headers (`-H`) and proxy headers (`--proxy-header`) separate for the same reason. - The use case in #6314 (proxy authentication) is already covered. The proxy username and password in the sampler's "Proxy Server" fields, or `-u`/`-a` and `http.proxyUser`/`http.proxyPass`, are sent by HttpClient 4 and 5 on `CONNECT` when the proxy answers `407 Proxy Authentication Required`. If a real case shows up where a proxy needs extra headers without a `407` challenge, we can look at a narrow, opt-in mechanism limited to proxy headers. Separately, please don't change the unicode filename in the multipart test (`testfile привет %.txt`). That test exists precisely to cover non-ASCII filenames. -- 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]
