cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: POST Digest Auth Stack corruption

From: Gopakumar Pillai <gpillai_at_broadsoft.com>
Date: Sun, 13 Nov 2011 16:14:37 -0800

Hi,

This question may have been answered many times, though I couldn't find any info that I want.

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-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-14