cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1461 curl_easy_reset removes proxy information via environment

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Mon, 08 Dec 2014 23:30:53 +0000

This example doesn't use curl_easy_reset() at all. How can it then show an issue with it as initially described?

---
** [bugs:#1461] curl_easy_reset removes proxy information via environment**
**Status:** open
**Created:** Fri Dec 05, 2014 11:58 AM UTC by JoSch
**Last Updated:** Sat Dec 06, 2014 01:31 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.