|
Posted by Michael Winter on 11/20/41 11:36
On 05/01/2006 15:41, marcwentink@hotmail.com wrote:
[snip]
> POST /cgi-bin/xxxxxx/xxxxxxxxxxxxx HTTP/1.1
This is a POST request...
[snip]
> Set-Cookie: SessieString=xxxxxxxxxxxxxxxx;
> path=/cgi-bin/xxxxxx/xxxxxxxxxxxxx; v
> ersion=1
....but Set-Cookie is a response header. You also seem to have a CRLF in
that value[1].
> I tried Cookie instead of Set Cookie,
If you send
Cookie: SessieString=xxxxxxxxxxxxxxxx
there should be no problem.
> with and without the path
The path parameter is not included in a Cookie request header. The
Cookie header consists only of name/value pairs.
> en version
There is no version parameter for either Cookie or Set-Cookie.
> and the letter with and without the semicolon.
I'm not quite sure what you mean there.
> I used /r/n since the server is on unix (Apache) and I am sending from a
> windows-client (Little C program written in g++).
It doesn't matter which operating system is used. Each header must be
terminated a CRLF pair (ASCII 13 + 10), and the entity body must be
separated from the headers by another CRLF pair.
Mike
[1] If that is just an error caused by automated wrapping from
your newsreader, you should do yourself (and others) a favour
by either explicitly noting the wrapping (to distinguish
intent from error) or, even better, wrap manually and
continue the header value on the following line (with the
necessary linear white space).
Set-Cookie: SessieString=xxxxxxxxxxxxxxxx;
path=/cgi-bin/xxxxxx/xxxxxxxxxxxxx;
version=1
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Navigation:
[Reply to this message]
|