Skip to content

HTTPS requests over HTTP CONNECT proxies should send relative URI #1124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2016

Conversation

jacobtolar
Copy link
Contributor

If we're sending a HTTPS request and using a proxy, we must be sending over a CONNECT tunnel. In that case, we only need to send the relative URI, not the full URI.

With this change, if I have a proxy configured and want to GET

https://some-url.com/the-path

the server behind some-url.com sees:

GET /the-path

Prior to this change the server will see:

GET https://some-url.com/the-path

The new behavior matches other clients (e.g. curl).

@slandelle slandelle merged commit 95ff7f1 into AsyncHttpClient:master Mar 31, 2016
@slandelle
Copy link
Contributor

Thanks!

@slandelle slandelle added this to the 2.0.0 milestone Mar 31, 2016
@slandelle slandelle self-assigned this Mar 31, 2016
slandelle added a commit that referenced this pull request Mar 31, 2016
@jacobtolar jacobtolar deleted the https-uri-over-proxy branch June 14, 2016 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants