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
curl doesn't use "https_proxy" for websockets "wss" requests #12031
Comments
I'm not sure curl supports WebSockets over proxy yet.
|
Actually, it does seem to use the ws_proxy and wss_proxy environment variables to set a WebSocket proxy server.
|
The Since Websockets use HTTP/HTTPS, I think the HTTP/HTTPS proxy configuration should apply to Websockets connections. |
Are you aware of any other programs that do that?
|
Firefox uses the http proxy environment variables for websockets connections. Their UI also has settings http/https/socks only, notably it does not have a separate option to configure websockets requests. It's well known that Websockets is an HTTP based protocol, so I expected it to use HTTP configuration. |
WebSockets isn't any more an HTTP protocol than GRPC, which uses the same
upgrade mechanism to switch from HTTP to use its own completely different
protocol. It will be bagder's call whether or not it makes sense to use
http_proxy for WebSockets as well. If multiple other programs do it, then it's
an easier sell.
|
Agreed. It makes sense to follow established behaviors. I find it a little strange to support |
We might want to check |
Reported-by: Craig Andrews Fixes #12031
Reported-by: Craig Andrews Fixes curl#12031 Closes curl#12058
I did this
I expected the following
curl/libcurl version
operating system
Fedora Linux 39
The text was updated successfully, but these errors were encountered: