You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be nice if the http client supported http proxies. Adding proxy support is relatively straightforward as its done using headers.
Regular HTTP request (connection to target 1.1.1.1)
GET / HTTP/1.1
Host: 1.1.1.1:8080
User-Agent: curl/7.68.0
Request to a proxy (connection to proxy 2.2.2.2)
GET http://1.1.1.1:8000/ HTTP/1.1
Host: 1.1.1.1:8000
User-Agent: curl/7.68.0
The primary difference is that the tcp connection doesn't match the host header and the full uri is used in the request line. Authorization could be manually performed using the current addHeader() method to add the Proxy-Authorization header.
I have working changes locally that I'd be happy to contribute if the maintainers think this is a worthwhile feature.
The text was updated successfully, but these errors were encountered:
@FAAAAT are you referring to #8086? My implementation doesn't support the TCP tunneling required for CONNECT
I don't think thats required for a https proxy though, an alternative implementation would perform tls termination at the proxy which would be possible to support in my implementation but I have not tried it yet.
Problem Description
I would be nice if the http client supported http proxies. Adding proxy support is relatively straightforward as its done using headers.
Regular HTTP request (connection to target 1.1.1.1)
Request to a proxy (connection to proxy 2.2.2.2)
The primary difference is that the tcp connection doesn't match the host header and the full uri is used in the request line. Authorization could be manually performed using the current
addHeader()
method to add theProxy-Authorization
header.I have working changes locally that I'd be happy to contribute if the maintainers think this is a worthwhile feature.
The text was updated successfully, but these errors were encountered: