RE: what does curl post

2012-10-22 Thread Yehezkel Horowitz
I wonder how I can know if curl convey the form content to the web site and what it posts. …My script failed to post. Any suggestion is welcome. Thanks. The very first step you can do is to use the CURLOPT_DEBUGFUNCTION to see the whole transaction. Yehezkel Horowitz

libcurl: resolver with HAVE_ALARM not thread safe?!

2012-10-22 Thread Thorben Thuermer
Hello, on http://curl.haxx.se/libcurl/features.html we find: libcurl is designed and implemented entirely thread safe. libcurl uses certain system calls to obtain information. Some of the most crucial ones are the name resoluition calls (the gethostby* family). i just debugged a problem in a

http file download using libcul

2012-10-22 Thread JALINDAR
Hi Forum, I need to download file with size of 4MB. I have seen the CURLOPT_WRITEFUNCTION function setting of curl handle. But it can download maximum of 100KB data at once when CURLOPT_HEADERhttp://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTHEADERis set to 1. How can I download large

Re: http file download using libcurl

2012-10-22 Thread Thorben Thuermer
On Mon, 22 Oct 2012 19:12:00 +0800 JALINDAR jalinder...@gmail.com wrote: Hi Forum, I need to download file with size of 4MB. I have seen the CURLOPT_WRITEFUNCTION function setting of curl handle. But it can download maximum of 100KB data at once when

Re: EXTRACT PUBLIC KEY FROM X509 SERVER CERTIFICATE

2012-10-22 Thread Nick Zitzmann
On Oct 21, 2012, at 3:35 AM, TB Singh tb.si...@indiatimes.com wrote: I am using libcurl 7.21.4 in Mac OS-X Mountain Lion using XCode. The program is a C code downloaded from the URL http://curl.haxx.se/libcurl/c/certinfo.html. When I build this program, it builds successfully. At runtime,

Re: libcurl: resolver with HAVE_ALARM not thread safe?!

2012-10-22 Thread Dan Fandrich
On Mon, Oct 22, 2012 at 02:24:01AM +0200, Thorben Thuermer wrote: on http://curl.haxx.se/libcurl/features.html we find: libcurl is designed and implemented entirely thread safe. libcurl uses certain system calls to obtain information. Some of the most crucial ones are the name resoluition

Re: libcurl: resolver with HAVE_ALARM not thread safe?!

2012-10-22 Thread Thorben Thuermer
On Mon, 22 Oct 2012 22:07:16 +0200 Dan Fandrich d...@coneharvesters.com wrote: On Mon, Oct 22, 2012 at 02:24:01AM +0200, Thorben Thuermer wrote: on http://curl.haxx.se/libcurl/features.html we find: libcurl is designed and implemented entirely thread safe. libcurl uses certain system calls

Re: libcurl: resolver with HAVE_ALARM not thread safe?!

2012-10-22 Thread Daniel Stenberg
On Mon, 22 Oct 2012, Thorben Thuermer wrote: alarm() is called even when connecting to numeric IP addresses, Room for improvement there I'd say! libcurl now gives a number of choices of DNS resolver back-end at compile time, some of which are immune to this problem. yes, i found those.

Re: Leftovers after chunking while using the easy interface

2012-10-22 Thread Daniel Stenberg
On Thu, 18 Oct 2012, SAÏD, Daniel wrote: In this case, libcurl randomly returns before having received all the data. This seems to occur only with big chunks 0x2000 (8192) bytes. If you can repeat this with a recent libcurl version, then please show us the raw byte stream you're getting and

Auth regression

2012-10-22 Thread Joe Mason
I've added a new auth test at https://github.com/JoeNotCharles/curl/commits/auth_state (top commit) It uses one connection and sends 6 requests on it, each with CURLAUTH_ALL. Each even-numbered request uses credentials testuser:wrongpass (will fail auth) and each odd-numbered request uses

Auth regression test

2012-10-22 Thread Joe Mason
I've added a new auth test at https://github.com/JoeNotCharles/curl/commits/auth_state (top commit) It uses one connection and sends 6 requests on it, each with CURLAUTH_ALL. Each even-numbered request uses credentials testuser:wrongpass (will fail auth) and each odd-numbered request uses