compilation error of libcurl 7.21.7 with mingw-w64 (i686, gcc 4.7)

2011-09-07 Thread Vincent Torri
Hey, I tried to compile libcurl 7.21.7 with mingw-w64 (i686, mingw, gcc 4.7) on Windows and I get that error: make[3]: Entering directory `/home/torri/packages/curl-7.21.7-src/release/mingw-w64-x86_32-curl-7.21.7/src' if i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I../include/curl -I../include -I../

Re: [PATCH] speedcheck.c disabling expire

2011-09-07 Thread Daniel Stenberg
On Wed, 7 Sep 2011, Adriano Meirelles wrote: I'm submitting patch to fix incorrect handling of Curl_expire by speedcheck.c. The current version of speedcheck.c may disable timeout by setting zero to Curl_expire. Which is fine using the curl_multi_perform, because it recheck all timeout interna

Re: [PATCH] allows curl to be able to send the custom headers with empty value.

2011-09-07 Thread Will . Hanson
Daniel, sorry for the accidental hijack. I hadn't been on the actual thread and thought Dan's email pertained to the topic.I apologize for any inconvenience or confusion I caused.Where can I learn more about setting the path as you mentioned?Will HansonOffice (770) 752-1071 x444-1071Mobile (770) 2

RE: Curl opens a socket with fd=0

2011-09-07 Thread Yamin Zhou
> Still, 0 is a fine socket descriptor. > > I think you need to tell us LOTS of more details if you actually want us to > help you do anything with this. we've found the problem, a library we are using has a bug and it close(0) at times thanks

Re: [PATCH] allows curl to be able to send the custom headers with empty value.

2011-09-07 Thread Daniel Stenberg
On Wed, 7 Sep 2011, will.han...@equifax.com wrote: If someone could add a curl_easy_setopt for this setting, it would be useful and appreciated. The idea is to modify the POST / HTTP/1.1 to say POST ANYTHING HTTP/1.1 and letting cURL decide the HTTP string. This ability accommodates web server

RE: Curl opens a socket with fd=0

2011-09-07 Thread Daniel Stenberg
On Wed, 7 Sep 2011, Yamin Zhou wrote: Why is this a problem? It would rather just indicate that you've closed the regular file descriptors that otherwise are open by default (0,1,2). I didn't close any of 0,1,2 ... my application runs at foreground. Still, 0 is a fine socket descriptor. I t

RE: Curl opens a socket with fd=0

2011-09-07 Thread Yamin Zhou
>> <13:52:55.356 DBG HCM 1556:1564 >> 0:0>[setSocketOption(HttpClientTransfer.cpp:683)] Socket 0 opened for >> connection >> >> what causes this problem there in curl? > >Why is this a problem? It would rather just indicate that you've closed the >regular file descriptors that otherwise are open by

Re: Curl opens a socket with fd=0

2011-09-07 Thread Daniel Stenberg
On Wed, 7 Sep 2011, Yamin Zhou wrote: <13:52:55.356 DBG HCM 1556:1564 0:0>[setSocketOption(HttpClientTransfer.cpp:683)] Socket 0 opened for connection what causes this problem there in curl? Why is this a problem? It would rather just indicate that you've closed the regular file descriptor

Curl opens a socket with fd=0

2011-09-07 Thread Yamin Zhou
hi, I observed that libcurl opens a socket which fd is 0 for connection ... curl_easy_setopt(m_curl, CURLOPT_SOCKOPTFUNCTION, doSetSocketOption); curl_easy_setopt(m_curl, CURLOPT_SOCKOPTDATA, this); int HttpClientTransfer::doSetSocketOption(void* userp, curl_socket_t curlfd, curlsocktyp

RE: Common designs for using libcurl (Thread-Safety)

2011-09-07 Thread Vladimir Grishchenko
> Date: Wed, 7 Sep 2011 10:25:34 -0700 > Subject: Common designs for using libcurl (Thread-Safety) > From: thejunk...@gmail.com > To: curl-library@cool.haxx.se > > > Is there a common, accepted approach for using libcurl efficiently, > maximizing throughput, and also not running into any of the

Common designs for using libcurl (Thread-Safety)

2011-09-07 Thread Jonathon
Hi, I am planning to use libcurl in my web client. My web client will be primarily responsible for posting data to web servers over SSL (and sometimes through a proxy). Sometimes, there will be quite a load on my web client (posting a lot of data) and therefore, I might need some additional thre

[PATCH] speedcheck.c disabling expire

2011-09-07 Thread Adriano Meirelles
Dear all, I'm submitting patch to fix incorrect handling of Curl_expire by speedcheck.c. The current version of speedcheck.c may disable timeout by setting zero to Curl_expire. Which is fine using the curl_multi_perform, because it recheck all timeout internals, but when using custom event poller

Issue with ca cert path

2011-09-07 Thread chaitanya sonavale
Hi, I am using libcurl with the .Net wrapper in a desktop application. Sometimes I am randomly getting following error message "Problem with the SSL CA cert (path? access rights?)" I am setting the path to ca.cert file using CURLOPT_CAINFO where the directory holding ca.cert file is determined a

Re: [PATCH] allows curl to be able to send the custom headers with empty value.

2011-09-07 Thread Will . Hanson
I applied the Dan's patch to lib/http.c (version 7.21.7). While it did what it was designed to do regarding lines with semi-colons, something else was needed.Instead I developed the following patch for lib/http.c :If someone could add a curl_easy_setopt for this setting, it would be useful and appr

RE: libcurl failures at a multi-threading application

2011-09-07 Thread Yamin Zhou
I'm using libevent to curl i/o events. But I see in callback fd is 0 ... is fd=0 reasonable? thanks, yamin --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: Re: Re: Error 411 (Length Required) in post request with header, but header has Content-Length:

2011-09-07 Thread Oleksiy
Solved. My error was because there is a symbol for a new line at the end of the auth string that I receive from YouTube in my prev POST request. --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://c

Re: Crash on shared asynchronous resolver results

2011-09-07 Thread Daniel Stenberg
On Wed, 7 Sep 2011, Vsevolod Novikov wrote: Please stop the top-posting. Please tell me, may I switch using internal DNS cache off at all? Yes you may. Go ahead. It might require some fiddling. -- / daniel.haxx.se --- List adm

Re: Need help with replacing cURL generated POST header

2011-09-07 Thread Michael Wood
Hi On 6 September 2011 19:26, wrote: > I need some help with replacing the cURL generated POST header. > I have followed the examples in my c program, using: > > struct curl_slist *slist=NULL; > curl_slist_append(slist, "POST /COKE HTTP/1.1"); /* Set Header */ You should not do this. What you