RE: Libcurl POST XML file URGENT help
Date: Wed, 13 Aug 2008 12:09:36 -0400
problem was using CURLAUTH_DIGEST. No authentication required while posting.
But data in the post carry login information.
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Wednesday, August 13, 2008 03:42
To: libcurl development
Subject: Re: Libcurl POST XML file URGENT help
On Tue, 12 Aug 2008, Addanki Venkat wrote:
What libcurl version on what platform?
> When I look at ethereal trace I don't see any data only header will be
> there, I tried with sample string as length 500 considered as big. Still
> has same problem. I am not able to send even single character as data
> with HTTP1.1 POST.
You don't need ethereal (which is called wireshark these days) to look at
libcurl sends, use CURLOPT_DEBUGFUNCTION for that!
> curl_easy_setopt(m_pCURL, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
Digest is a challenge+response style of authentication, so the initial POST
expected to not send any data as the server won't accept it anyway.
-- / daniel.haxx.seReceived on 2008-08-13