cURL / Mailing Lists / curl-library / Single Mail


RE: POST Digest Auth Stack corruption

From: Daniel Stenberg <>
Date: Mon, 14 Nov 2011 22:32:01 +0100 (CET)

On Mon, 14 Nov 2011, Gopakumar Pillai wrote:

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

Well, most people using Digest uses libcurl's own support for it and don't
custom create the headers for it.

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


> I can send you the code snippet if required.

Please do, I strongly suspect a mistake in your code...

List admin:
Received on 2011-11-14