curl-library
Problem in posting the URL Request
From: Anjalinbenedicta J <anjalinbenedicta.j_at_tcs.com>
Date: Thu, 1 Apr 2010 17:40:21 +0530
Hi All,
Date: Thu, 1 Apr 2010 17:40:21 +0530
Hi All,
Apologies.
OS is solaris5.10
lib curl version 7.15.5.1.1
Problem
I am able to post the URL request using GET method for few calls and system is getting crashed for few calls.
AS you mentioned in the previous mail, list is being created and freed when it is not required..
We are using the single class for posting the XML request and URL Request.
The class was created for XML Request initially..Recently the same class is being used for URL Request.
Instead of changing the existing code, thought of freeing the list before sending the URL Request..
Thus, list was created and was freed before sending the URL Request.
Now, I would like to know why it is posting the request for few calls and it is getting crashed for few calls.
Can you please help me in this regard..
Regards,
Anjalin
-----curl-library-bounces@cool.haxx.se wrote: -----
Anjalin
-----curl-library-bounces@cool.haxx.se wrote: -----
To: libcurl development <curl-library@cool.haxx.se>
From: Daniel Stenberg
Sent by: curl-library-bounces@cool.haxx.se
Date: 04/01/2010 12:59PM
Subject: Re: Need ur help ASAPOn Thu, 1 Apr 2010, Anjalinbenedicta J wrote: > We havent set the option for Http headers..yet it is going through > checkheaders. Please stop the top-posting and start following the guidelines everyone else adheres to on this mailing list. Also, if you use a sensible subject for your mail and properly explain as much as possible in the body, you will have a much higher chance of someone actually caring and responding to your request. What libcurl version on what OS are we talking here? Can you please send us a complete small example that repeats the problem you're seeing? > m_xml_list = 0; > m_xml_list = curl_slist_append(m_xml_list, "Content-Type: > application/x-www-form-urlencoded"); > m_xml_list = curl_slist_append(m_xml_list, "Expect:"); This seems to build a list. Why, if it isn't used? > curl_slist_free_all(m_xml_list); /* free the header list */ ... and this frees the list again. Seemingly before the request is sent. -- / daniel.haxx.se------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
=====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-01