cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: CURLE_COULDNT_CONNECT

From: juan carlos rodriguez mendez <roheca_01_at_hotmail.com>
Date: Fri, 20 Jun 2008 23:41:39 +0000

Hello again: already implement the changes that you said, a something else, if I can make several requests followed to be exact 15 and in the number 16 is when I get the error CURLE_COULDNT_CONNECT and therefore I don't know how solve this problem.
please help me!!!!!!!!

                                   NEGRITO > Date: Fri, 20 Jun 2008 11:29:22 -0700> From: dan@coneharvesters.com> To: curl-library@cool.haxx.se> Subject: Re: CURLE_COULDNT_CONNECT> > On Fri, Jun 20, 2008 at 05:54:18PM +0000, juan carlos rodriguez mendez wrote:> > I have a big problema with the cURL and is as follows:> > After making some connections using this tool send me the error> > CURLE_COULDNT_CONNECT and after that all the other requests I send this> > That implies a problem in the URL, in the remote host or in the network.> > > response error, let me know if I could help solve this problem as I have with> > him as about 3 weeks and I can not find the solution.> > the version I have is "curl-7.13.1," I'm using a Unix server and I'm> > programming in language C.> > This version is over 3 years old. Many bugs have been fixed since then.> > > This is a part of the code that apply and that gives me this error after some> > requests:> > After "some" requests? So it works some of the time?> > > sprintf(contentlength, "Content-Length: %d", strlen(buff));> > headerlist = curl_slist_append (headerlist, contentlength);> > This isn't the right way to set the content length. Use CURLOPT_POSTFIELDSIZE> instead.> > > curl_easy_setopt (curl, CURLOPT_URL, URL);> > You don't say what your URL looks like.> > > /* Re-initializes all options */> > curl_easy_reset(curl);> > You don't need to reset a handle that's about the be cleaned up.> > > /* free slist */> > curl_slist_free_all (headerlist);> > curl_free(headerlist);> > curl_slist_free_all does just that--frees ALL the list. Calling curl_free> on the list afterwards is a double free and an error.> > >>> Dan> -- > http://www.MoveAnnouncer.com The web change of address service> Let webmasters know that your web site has moved
_________________________________________________________________
Juega y gana, tenemos 3 Xbox a la semana.
http://club.prodigymsn.com/
Received on 2008-06-21

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET