cookie problem

Alex Martelli alex at magenta.com
Fri Aug 18 08:32:06 EDT 2000


<honza_v at my-deja.com> wrote in message news:8nj74m$hhh$1 at nnrp1.deja.com...
> I have following script to test use of cookies, but all I get is
"Set-Cookie:
> name=Test; some text" output in the browser. What I'm doing wrong?

It appears to me (from what you include, which I'm leaving in, in
quoted form, below) that you're leaving an extra blank line after
the content-type header and before the set-cookie one.  What happens
if you remove that extra blank line...?


Alex

>
> Thank in advance.
> Jan
>
> <pre>
> #!/usr/bin/env python
>
> print """Content-type: text/html
>
> Set-Cookie: name=Test;
>
> <HTML><BODY>some text</BODY></HTML>"""
> </pre>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.





More information about the Python-list mailing list