W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Changes to cookie-handling mechanism

From: Allen Comer <allen.comer@entropic.com>
Date: Wed, 9 Jun 1999 22:24:06 -0400 (EDT)
Message-ID: <F18326290662D211921B00105A29876781B1@sheik.entropic.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>

Hi libwww people,

My understanding of HTTP is still fairly fragile at this point but I do
know that I was unable to get things to work until I made the following
modifications to 'HTCookie.c'.

I think the format for the cookie portion of an HTTP request header
should assume the following format:

	Cookie: name1=value1; name2=value2; ...

If so, then the following changes are needed in 'HTCookie.c'

Function - HTCookie_beforeFilter()

Modification #1

original source:
	if (!first) HTChunk_putc(cookie_header, ',');

proposed change:
	if (!first) HTChunk_puts(cookie_header, "; ");

Modification #2

original source:
	HTRequest_addExtraHeader(request, "Cookie",

proposed change:
	    HTRequest_addExtraHeader(request, "Cookie: ",


- Allen C.
Received on Thursday, 10 June 1999 04:13:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:49 UTC