cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: POST Digest Auth Stack corruption

From: Gopakumar Pillai <gpillai_at_broadsoft.com>
Date: Mon, 14 Nov 2011 08:49:00 -0800

Hi,

This question may have been answered many times, though I couldn't find any info that I want. I am using libcurl in an embedded platform based on ARM processor.

I am trying to send a HTTP request with minimal Digest Auth. Here is the header line I want to send with my request:

Authorization: Digest username=foo,realm=my-realm,nonce=12345,uri=/,qop=auth,nc=0001,cnonce=54321,response=myresponse

In my C code using curl easy interface, I did set the header using slist and CURLOPT_HTTPHEADER. It works the first time, but corrupts the stack on calling the curl_easy_perform.

Mine is a POST request and I am sending the body using CURLOPT_POSTFIELDS (which has only the body and not any of the HTTP headers).

Can anyone direct me to the right way of doing this?

I can send you the code snippet if required.

Thanks a lot in advance.

--Gopu

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-14