parse_proxy: use the URL parser API

As we treat a given proxy as a URL we should use the unified URL parser
to extract the parts out of it.

Closes #3878
This commit is contained in:
Daniel Stenberg 2019-05-12 23:46:41 +02:00
parent e832d1ef74
commit ee68bbe29c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 84 additions and 149 deletions

View file

@ -34,7 +34,7 @@ http
socks5
</server>
<setenv>
http_proxy=socks5://%HOSTIP:%SOCKSPORT
http_proxy=socks5://%HOSTIP:%SOCKSPORT
</setenv>
<name>
HTTP GET via SOCKS5 set in http_proxy environment variable