cURL / Mailing Lists / curl-library / Single Mail

curl-library

Content-Length missing when setting cookie

From: Szymon Gatner <szymon.gatner_at_gmail.com>
Date: Mon, 13 May 2013 11:22:55 +0200

Hi,

I am having a problem with POST method and cookie.

When just CURLOPT_POSTFIELDS and CURLOPT_POSTFIELDSIZE are set I can see
correct Content-Length header in the outgoing request.

Problem starts when I also set CURLOPT_COOKIE, then I can see valid Cookie
header in the request but Content-Length is suddenly missing.

Changing the order of actions (first cookie then post) doesn't work either
(I thought maybe I was overwriting header with CUROPT_COOKIE)

What is happening?

Regards,
Szymon Gatner

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-13