Unsupported proxy scheme for https #1015

Closed
kodiakz opened this Issue Sep 15, 2016 · 5 comments

Comments

Projects
None yet
4 participants

kodiakz commented Sep 15, 2016

I did this

$curl https://github.com/rmarquis/pacaur/archive/4.6.9.tar.gz
curl: (7) Unsupported proxy scheme for 'https://xxx.xxx.xxx.xxx:80'

$export | grep https_proxy
https_proxy=https://xxx.xxx.xxx.xxx::80

I expected the following

$curl https://github.com/rmarquis/pacaur/archive/4.6.9.tar.gz
<html><body>You are being <a href="https://codeload.github.com/rmarquis/pacaur/tar.gz/4.6.9">redirected</a>.</body></html>

$curl -V
curl 7.50.1 (x86_64-pc-linux-gnu) libcurl/7.50.1 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

curl/libcurl version

$curl -V
curl 7.50.2 (x86_64-pc-linux-gnu) libcurl/7.50.2 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

operating system

$lsb_release -a
LSB Version:    1.4
Distributor ID: Arch
Description:    Arch Linux
Release:    rolling
Codename:   n/a
Owner

bagder commented Sep 15, 2016

curl doesn't support HTTPS proxy so you get this message to make you aware of that so that you don't think you're actually are using a HTTPS proxy.

Previously curl would just ignore non-supported schemes in the proxy URL and that mislead people into believing things about what they accomplished. Now, curl will tell you when you try to use a proxy method that curl doesn't support. Like HTTPS.

If you instead specify http:// to the proxy, you'll see that it works (like before) and you don't any longer rely on curl's silent downgrade.

kodiakz commented Sep 16, 2016

https_proxy=http://xxx.xxx.xxx.xxx::80 works! Thx...

@kodiakz kodiakz closed this Sep 16, 2016

@IBUzPE9 IBUzPE9 referenced this issue in rust-lang-nursery/rustup.rs Dec 28, 2016

Closed

Updating via proxy is broken #816

cURL (>=7.52.0) supports HTTPS proxies https://daniel.haxx.se/blog/2016/11/26/https-proxy-with-curl/

mrtazz added a commit to mrtazz/restclient-cpp that referenced this issue Apr 23, 2017

change prefixed address for proxy to HTTP
curl doesn't support https proxies prior to version 7.52.0. It used to
silently drop it but in newer versions below 7.52.0 it fails with

curl: (7) Unsupported proxy scheme for 'https://xxx.xxx.xxx.xxx:80'

Since this unit test just makes sure the code parsing the prefix gets
executed properly, we can change it to http here and get the same
effect.

[1]: curl/curl#1015

sponiasmona commented Aug 27, 2017

Owner

bagder commented Aug 27, 2017

@sponiasmona if you experience a bug with the latest curl, file a new bug. This is an old and closed report.

@bagder bagder locked and limited conversation to collaborators Aug 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.