cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is curl suitable for iOS/Android when http proxy is used

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 15 Jan 2016 14:57:20 -0500

On 1/15/2016 7:57 AM, CĂ©dric Deltheil wrote:
> On Fri, Jan 15, 2016, at 01:25 PM, JOHAN LANTZ wrote:
>> My doubt at this moment is how devices using a http proxy would work.
>> I have not confirmed it but I would assume that if you use the native
>> API’s from Apple, the proxy would be taken care of by default while
>> if we use curl we would be forced to ask the user to manually provide
>> a password, something I guess most users don’t know how to do or
>> would be reluctant to doing.
> From what I experienced on iOS I do confirm you need to explicitly set
> the proxy via ad-hoc `curl_easy_setopt` API calls, like:
> curl_easy_setopt(handle, CURLOPT_PROXY, host);
> curl_easy_setopt(handle, CURLOPT_PROXYPORT, port);
>

This is also true of Windows, libcurl does not use the IE proxy
settings. Refer to
https://github.com/git-for-windows/git/issues/387
https://github.com/LoginPeople/Windows-proxy-settings/blob/master/proxyparser.cpp
http://stackoverflow.com/questions/202547/how-do-i-find-out-the-browsers-proxy-settings
https://github.com/bagder/curl/issues/352
http://curl.haxx.se/mail/lib-2013-01/0329.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-15