curl-library
Re: Problem using a proxy
Date: Sat, 26 Oct 2013 16:32:54 +0300
Thanks,
That was actually the problem - figured it out when replaced the code with
actual regular string rather than the var based version.
I'll also use the VERBOSE option in the future.
Dani
On Sat, Oct 26, 2013 at 3:37 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sat, 26 Oct 2013, Kaplan Dani wrote:
>
> I've configured a proxy server on another computer (wingate proxy server)
>> and my 2nd computer traffic goes through it.
>>
>> I try to make a curl call using this proxy:
>>
>> 192.168.3.79:8008
>>
>> by calling:
>>
>> curl_easy_setopt(curl, CURLOPT_PROXY, proxy.c_str());
>>
>> (proxy is a wstring containing the address above)
>>
>
> wstring? I would assume that's your problem then. Pass in a plain zero
> terminated ascii string.
>
> Enabling CURLOPT_VERBOSE is also generally a good idea as it tells more
> about what's going on-
>
> --
>
> / daniel.haxx.se
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-26