We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[
Both curl and Firefox include [ and ] in the request line and host header when using IPv6 with an HTTP proxy. OkHttp doesn’t and this is broken.
]
CONNECT [::1]:443 HTTP/1.1 Host: [::1]:443 User-Agent: curl/7.43.0 Proxy-Connection: Keep-Alive
GET http://[::1]/foo HTTP/1.1 Host: [::1] User-Agent: curl/7.43.0 Accept: */* Proxy-Connection: Keep-Alive
CONNECT [::1]:443 HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0 Proxy-Connection: keep-alive Connection: keep-alive Host: [::1]:443
GET http://[::1]/foo HTTP/1.1 Host: [::1] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive
The text was updated successfully, but these errors were encountered:
Make IPv6 request lines consistent with Firefox and Chrome.
4ce7d76
Previously we omitted the square braces and explicit port on CONNECT requests and the square braces in the Host header. Closes #2344
7ceaa23
No branches or pull requests
Both curl and Firefox include
[
and]
in the request line and host header when using IPv6 with an HTTP proxy. OkHttp doesn’t and this is broken.The text was updated successfully, but these errors were encountered: