cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1461 http_proxy not used for HTTPS

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Tue, 09 Dec 2014 07:02:35 +0000

- **summary**: curl_easy_reset removes proxy information via environment --> http_proxy not used for HTTPS
- **Comment**:

Sorry, I wasn't paying attention. I'm changing the title now. But also: libcurl checks "[protocol]_proxy" for a proxy so if you use HTTPS the "https_proxy" variable is used!

---
** [bugs:#1461] http_proxy not used for HTTPS**
**Status:** open
**Created:** Fri Dec 05, 2014 11:58 AM UTC by JoSch
**Last Updated:** Tue Dec 09, 2014 04:54 AM UTC
**Owner:** Daniel Stenberg
Hi,
the documentation for curl_easy_reset says:
"Re-initializes all options previously set on a specified CURL handle to the default values. This puts back the handle to the same state as it was in when it was just created with curl_easy_init."
Suppose I have set the http_proxy environment variable. Then that one will be properly respected after a curl_easy_init. But once I do curl_easy_reset that information is lost.
So either above documentation has to be adapted to say "This puts back the handle to the same state as it was in when it was just created with curl_easy_init except that any proxy server set with the http_proxy environment variable is lost".
Or curl_easy_reset should respect the value of the http_proxy environment variable if it is set.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-12-09

These mail archives are generated by hypermail.