cURL / Mailing Lists / curl-library / Single Mail


Problem in posting the URL Request

From: Anjalinbenedicta J <>
Date: Thu, 1 Apr 2010 17:40:21 +0530

Hi All,
OS is solaris5.10
lib curl version
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..
Anjalin wrote: -----
To: libcurl development <>
From: Daniel Stenberg
Sent by:
Date: 04/01/2010 12:59PM
Subject: Re: Need ur help ASAP

On 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.


List admin:
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:
Received on 2010-04-01