Re: libcurl waits indefinitely for data

2011-01-23 Thread arnuld uttre
> On Mon, Jan 24, 2011 at 10:28 AM, arnuld uttre > wrote: >> On Fri, Jan 14, 2011 at 2:12 PM, Daniel Stenberg wrote: >> Right, but if libcurl doesn't get any data it will just wait. And wait. >> Forever. > >> You need to give it a timeout or some

Re: libcurl waits indefinitely for data

2011-01-23 Thread arnuld uttre
> On Fri, Jan 14, 2011 at 2:12 PM, Daniel Stenberg wrote: >> On Wed, 12 Jan 2011, arnuld uttre wrote: >> Have not been able to reproduce the problem with my small code (may take >> 2-3 more days for curl) but here is what I got from CURLOPT_VERBOSE from >> th

Re: unsub

2011-01-20 Thread arnuld uttre
> On Fri, Jan 21, 2011 at 3:36 AM, wrote: > unsub Try again with -request added to curl mail id -- http://uttre.wordpress.com/2008/05/14/the-lost-love-of-mine/ --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etique

Re: libcurl waits indefinitely for data

2011-01-17 Thread arnuld uttre
> On Wed, Jan 12, 2011 at 4:45 PM, Dirk Manske wrote: > Do you really use that *very* old version? > Please update and try again. Thanks. With latest stable version (7.21.3) of libcurl, CURL_TIMEOUT option works fine. Don't know why in 7.15 version it wasn't working. -- http://uttre.wordpre

Re: libcurl waits indefinitely for data

2011-01-12 Thread arnuld uttre
> On Mon, Jan 10, 2011 at 10:20 PM, Andre Guibert de Bruet > wrote: > What version of libcurl are you using? Are you able to reproduce this > behavior with a small program that you can share with the list? Sorry, forgot to mention it. on CentOS 5.5 [r...@dune Python-2.7.1]# curl-config --libs

Re: libcurl waits indefinitely for data

2011-01-12 Thread arnuld uttre
> On Mon, Jan 10, 2011 at 10:20 PM, Andre Guibert de Bruet > wrote: > What version of libcurl are you using? Are you able to reproduce this > behavior with a small program that you can share with the list? Have not been able to reproduce the problem with my small code (may take 2-3 more days fo

Re: libcurl waits indefinitely for data

2011-01-10 Thread arnuld uttre
> On Tue, Jan 11, 2011 at 12:19 AM, Daniel Stenberg wrote: >> On Mon, 10 Jan 2011, arnuld uttre wrote: >> libcurl saves data fine almost 99.9% of the time but on very rare >> occasions it waits for infinite amount of time and never returns from >> there. > Well,

libcurl waits indefinitely for data

2011-01-10 Thread arnuld uttre
I am using libcurl API in software I am building for my employer. I am using libcurl to execute a PHP script on LAN and get some data back (using CURLOPT_URL). PHP script sends back some data which I save using a code almost identocal to this: http://curl.haxx.se/libcurl/c/getinmemory.html libcu

Re: Timout in HTTP data transfer

2010-11-19 Thread arnuld uttre
> On Fri, Nov 19, 2010 at 11:44 AM, Dan Fandrich > wrote: > > But what about 50L or 20L?  That would show if the timeout mechanism is > even working on your platform (I don't think yo said what it is). These values of 20L, 18L, 21L, 50L too do not work. > I'm assuming libcurl waits for 60 sec

Re: Timout in HTTP data transfer

2010-11-18 Thread arnuld uttre
> On Fri, Nov 19, 2010 at 3:24 AM, Dan Fandrich wrote: > The values must be longs, not int. Try using 1L and 100L as your values. > What is libcurl doing when the timeout occurs? libcurl is waiting for the data from HTTP server, here is the output from CURLOPT_VERBOSE, Between Accept: */* and

Timout in HTTP data transfer

2010-11-17 Thread arnuld uttre
I am using libcurl to receive some data from web server. I am using these options: curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 100); I am already connected to the server hence do not need CURLOPT_CONNECTTIMEOUT options to use. I am just waiting for the d

Re: Saving data received from http server

2010-11-12 Thread arnuld uttre
> On Fri, Nov 12, 2010 at 6:32 PM, Daniel Stenberg wrote: > On Fri, 12 Nov 2010, arnuld uttre wrote: > CURLOPT_WRITEFUNCTION sets the function that libcurl will call. > CURLOPT_WRITEDATA is used to set the pointer that the function gets in its > fourth argument. They're bot

Re: Saving data received from http server

2010-11-12 Thread arnuld uttre
> On Fri, Nov 12, 2010 at 5:32 PM, Daniel Stenberg wrote: > On Fri, 12 Nov 2010, arnuld uttre wrote: > See http://curl.haxx.se/libcurl/c/getinmemory.html Thanks Daniel :) Its very useful to me. I have read and hopefully, understood the code, have printed and reading libcurl tutorial

Saving data received from http server

2010-11-12 Thread arnuld uttre
WANTED: save the incoming data from http server. WHAT I GOT: It works PROBLEM: A dirty brute-force approach used to save data. Have explained the problem in comments inside the program. Anyone has better idea ? I have written a simple program to receieve data from any HTTP server (learning to use