cURL / Mailing Lists / curl-library / Single Mail


Re: Proxy support - Mac and Windows

From: Matthew Veenstra <>
Date: Mon, 27 Aug 2007 17:13:42 -0700


Thanks for the input! I kind of remember that discussion now that
you say it.

We will do our best to make this a chunk of code that can be added in
for those who need it. Should it be done in the same spirit as the
new curlx_getenv()? So curlx_getproxy(CURL *handle, char* url, long
authentication) // last one if needed.

The code I wrote a few years ago does not deal with NTML as it was
not around then in libcurl or at least I did not need it.

Matt Veenstra

On Aug 27, 2007, at 3:37 PM, Dan Fandrich wrote:

> On Mon, Aug 27, 2007 at 02:33:52PM -0700, Matthew Veenstra wrote:
>> We are going to be adding support for grabbing proxy servers from
>> user system
>> preferences for Mac and Windows. I know everyone has done a bit
>> of this over
>> the years. Is there any interest in us adding this code to
>> libcurl in some
>> way.
>> libcurl supports environment variables for a proxy server. GUI
>> data is just an
>> extension of storing user data. If this is wanted is there any
>> recommendation
>> for an api to use this? curl_getproxy()?
> When this came up last time, IIRC the consensus was that this kind
> of code
> made more sense as a separate function that could be linked in to
> an app
> instead of being a part of libcurl.
> As far as an API goes, you'll need to pass in at least the URL as
> well as the
> easy handle to the proxy detection routine. The URL is needed to get
> the requested protocol in case different proxies are needed for
> different
> protocols. You might need to pass in the authentication method, too,
> because I think NTLM authentication through a regular HTTP proxy
> server
> isn't always reliable (you'd have to set CURLOPT_HTTPPROXYTUNNEL in
> that
> case).
>>>> Dan
> --
> The web change of address
> service
> Let webmasters know that your web site has moved
Received on 2007-08-28