curl-library
FW: CURLE_COULDNT_CONNECT
Date: Sat, 21 Jun 2008 00:26:27 +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 methis is the code with the changes told me: curl = curl_easy_init (); if (curl) { headerlist = curl_slist_append (headerlist, 'Content-Type: text/xml; charset=ISO-8859-1'); headerlist = curl_slist_append (headerlist, 'SOAPAction: \'urn:IntrawayWSDL#Put\''); sprintf(buff, '<?xml version=\'1.0\' encoding=\'iso-8859-1\'?>\n \ <SOAP-ENV:EnvelopeSOAP-ENV:encodingStyle=\'http://schemas.xmlsoap.org/soap/encoding/\' \ xmlns:SOAP-ENV=\'http://schemas.xmlsoap.org/soap/envelope/\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\' \ xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:SOAP-ENC=\'http://schemas.xmlsoap.org/soap/encoding/\' \ xmlns:si=\'http://soapinterop.org/xsd\' xmlns:tns=\'urn:IntrawayWSDL\'>\n \ <SOAP-ENV:Body>\n \ <tns:Put xmlns:tns=\'urn:IntrawayWSDL\'>\n \ <authKey xsi:type=\'xsd:string\'>%s</authKey>\n \ <ArrayOfInterfaceObjInput xsi:type=\'SOAP-ENC:Array\' SOAP-ENC:arrayType=\'tns:InterfaceObjInput[1]\'>\n \ <item xsi:type=\'tns:InterfaceObjInput\'>\n \ <idEntradaCaller xsi:type=\'xsd:string\'></idEntradaCaller>\n \ <idInterface xsi:type=\'xsd:string\'>%ld</idInterface>\n \ <idEstado xsi:type=\'xsd:string\'>%ld</idEstado>\n \ <asyncronic xsi:type=\'xsd:string\'>%ld</asyncronic>\n \ <fechaDiferido xsi:type=\'xsd:string\'>%s</fechaDiferido>\n \ <idCliente xsi:type=\'xsd:string\'>%s</idCliente>\n \ <idEmpresa xsi:type=\'xsd:string\'>%ld</idEmpresa>\n \ <idVenta xsi:type=\'xsd:string\'>%ld</idVenta>\n \ <idVentaPadre xsi:type=\'xsd:string\'>%ld</idVentaPadre>\n \ <idServicio xsi:type=\'xsd:string\'>%s</idServicio>\n \ <idProducto xsi:type=\'xsd:string\'>%s</idProducto>\n \ <idServicioPadre xsi:type=\'xsd:string\'>%s</idServicioPadre>\n \ <idProductoPadre xsi:type=\'xsd:string\'>%s</idProductoPadre>\n\ <idPromotor xsi:type=\'xsd:string\'>%s</idPromotor>\n \ <xmlEncoding xsi:type=\'xsd:string\'>%s</xmlEncoding>\n \ </item>\n \ </ArrayOfInterfaceObjInput>\n \ <doAtomic xsi:type=\'xsd:string\'>0</doAtomic>\n \ </tns:Put>\n \ </SOAP-ENV:Body>\n \ </SOAP-ENV:Envelope>\n', \ authKey, idInterface, idEstado, asyncronic, fechaDiferido, idCliente, idEmpresa, idVenta, idVentaPadre, \ idServicio, idProducto, idServicioPadre, idProductoPadre, idPromotor, buffer); }curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE, strlen(buff));curl_easy_setopt (curl, CURLOPT_FAILONERROR,0);curl_easy_setopt (curl, CURLOPT_HTTPAUTH, CURLAUTH_GSSNEGOTIATE);curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 0);curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 0);curl_easy_setopt (curl, CURLOPT_URL, URL);curl_easy_setopt (curl, CURLOPT_POST, 1);curl_easy_setopt (curl, CURLOPT_HEADER, 1);if(verbose)curl_easy_setopt (curl, CURLOPT_VERBOSE, 1);curl_easy_setopt (curl, CURLOPT_HTTPHEADER, headerlist);curl_easy_setopt (curl, CURLOPT_POSTFIELDS, buff); /* send all data to this function */ curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); /* we pass our 'chunk' struct to the callback function */ curl_easy_setopt (curl, CURLOPT_WRITEDATA, (void *) &chunk); /* free slist */ curl_slist_free_all (headerlist); /* always cleanup */ curl_easy_cleanup (curl);
NEGRITO
From: roheca_01_at_hotmail.comTo: curl-library_at_cool.haxx.seSubject: FW: CURLE_COULDNT_CONNECTDate: Fri, 20 Jun 2008 19:19:52 +0000
hi what is done is for each shipment that was sent using the same code I send in the mail previous, ie for each application that is sending an 'curl = curl_easy_init ();' and their 'curl_easy_cleanup (curl);' to close it. in the part of the URL is a variable that already contains an address default. and what they told me I do not need 'curl_easy_reset(curl);' nor the 'curl_free(headerlist);'
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
Conoce el perfil completo de todos tus amigos de Windows Live Messenger justo aquí: Windows Live Spaces
¿Tus fotos son un desorden? La solución a tus males se llama Galería fotográfica de Windows Live
Conoce el perfil completo de todos tus amigos de Windows Live Messenger justo aquí: Windows Live Spaces
_________________________________________________________________
P.D. Checa las nuevas fotos de mi Space
http://home.services.spaces.live.com/
Received on 2008-06-21