Skip to content
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

Proxy tunnel is enabled on all connections #176

Open
bostelk opened this issue Feb 11, 2022 · 0 comments
Open

Proxy tunnel is enabled on all connections #176

bostelk opened this issue Feb 11, 2022 · 0 comments

Comments

@bostelk
Copy link

bostelk commented Feb 11, 2022

Expected behaviour

A request to a insecure (HTTP) web server returns a response when the connection is proxied.

Actual behaviour

A request to a insecure (HTTP) web server returns an empty response when the connection is proxied.

< HTTP/1.1 200 Connection established
< 
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
> POST /api/hello HTTP/1.1
Host: localhost
User-Agent: restclient-cpp/0.5.2
Accept: */*
Content-Type: application/json
Content-Length: 172

* Empty reply from server
* Closing connection 0

The proxy server is not configured to accept HTTP CONNECT requests on port 80 (AFAICT). I will need to confirm, but either the option to disable the tunnel (CURLOPT_HTTPPROXYTUNNEL) or detect a secure (HTTPS) connection and enabled it when necessary will resolve this issue.

@bostelk bostelk changed the title Tunnel proxy is enabled on all connections Proxy tunnel is enabled on all connections Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant