login about faq

Using 9.31 On Mac OS.

Calling http.SetRequestHeader("Cookie", cookie.c_str());

where cookie.c_str() is name1=KszB2jqHO7phNhxcJlxIabDpHDR9;name2=abcdefgh

Enabled session log: What I see is:


That is, after the first semi-colon (;), the value (in this case abcdefgh is enclosed in double quotes). If I have 3 name value pairs, the last 2 show this behavior. I get a server error.

Now, when I call

  CkString tmp_str;

  http.GetRequestHeader("Cookie", tmp_str);

  printf("GetRequestHeader %s\n", tmp_str.getString());

I get the correct value.

Appreciate your help. Thanks.

Note: the spec says that comma (,) should work (as ; is for backwards compatibility). When I use comma, the session log file shows the correct Cookie header but it doesn't work. It is possible that the server doesn't support this.

Babu Srinivasan

asked Jul 19 '12 at 12:53

Babu's gravatar image


When I tried with dynamic libraries, I got segmentation fault. Then I used static libs. The issue has been fixed. But the same problem is there with request.AddHeader("Cookie", ...). I need to use AddHeader where I have a HTTP request object (SetRequestHeader cannot be used).

(Jul 28 '12 at 11:42) Babu

I am not able to reproduce the problem with request.AddHeader("Cookie", ...)

Which Chilkat method is being called where you pass the CkoHttpRequest object?

(Jul 30 '12 at 10:32) chilkat ♦♦

Matt, Is this fixed in 9.3.2? I downloaded the 9.3.2 version for MacOS and I see the same problem. I don't see this fix listed in the release notes. Note: I am linking with chilkat-9.3.2-macosx/libStatic/libchilkat.a

(Sep 02 '12 at 08:01) Babu


Thanks, this may already be fixed in the internal pre-release. I will re-build for Mac OS, test, and then notify you with a download link when the fix is ready. (I expect this to be later today.)



answered Jul 23 '12 at 08:31

chilkat's gravatar image

chilkat ♦♦

Thanks Matt. I will try it out when I get the update with the fix. Babu

(Jul 23 '12 at 11:23) Babu

This new build should fix the problem:

(if using Objective-C) http://www.chilkatsoft.com/preRelease/Chilkat-9.3.1-Cocoa-10.6.zip

(if using C/C++) http://www.chilkatsoft.com/preRelease/chilkat-9.3.1-macosx.tar.gz



answered Jul 23 '12 at 16:36

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 19 '12 at 12:53

Seen: 3,230 times

Last updated: Sep 02 '12 at 08:01

powered by OSQA