Problem reading HTTP_COOKIE

Chris Angelico rosuav at
Fri Aug 12 16:29:25 EDT 2011

On Fri, Aug 12, 2011 at 4:55 PM, Jack Hatterly <jackhatterly at> wrote:
> It prints "None". However, when I look in my browser's cookie jar, there is
> a cookie "" where my_site is the site from which I am surfing
> the above script. What gives?

I assume that what you mean is that it prints "None" even after you
hit F5 to reload the page, as the first run of the script will never
have a cookie.

Your script is now not actually setting any cookie. What cookie are
you seeing in your browser? It may be something created and consumed
by your framework, somewhere.


More information about the Python-list mailing list