cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: XML libcurl problem

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 3 Aug 2005 20:35:05 +0200 (CEST)

On Tue, 2 Aug 2005, Alexander Reich wrote:

> curl_slist_free_all(headerlist);

This is badly placed, it should be done after the cleanup.

> curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "<?xml version=\"1.0\"
> encoding=\"UTF-8\"?><Person>Maier</Person>");

This looks like a plain unencoded string. Is that what the server wants?

> Why can't I see the xml-data?

I don't know. Have you used ethereal or similar to capture the network traffic
to verify that your server really tells you the whole truth and nothing but
the truth?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-03