cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: introduced an auth callback

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 16 May 2012 22:49:01 +0200

On Wed, May 16, 2012 at 10:23:21PM +0200, Daniel Stenberg wrote:
> As I've understood the problem, an application doesn't necesarily
> know which proxy it uses before-hand! If you allow the user to
> specify it somehow in an argument or config file the program have to
> make a rather complicated parsing to extract the info, but if the
> proxy information is passed in as an environment variable the
> application doesn't necessarily know about it at all until libcurl
> detects it. Or it needs to re-implement libcurls environment variable
> logic to catch the correct proxy to figure it out. Complicated
> alternatives that would be much easier solved if libcurl told the app
> about what it figured out.

How about a curl_easy_getinfo CURLINFO_EFFECTIVE_PROXY option that
returns the URL to the proxy? Seems like it might be useful in the
general case, too.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-16