Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'prints': 0.07; 'framework,': 0.09; 'subject:Problem': 0.09; '"none"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reload': 0.16; 'wrote:': 0.16; 'assume': 0.22; 'header:In-Reply- To:1': 0.22; 'pm,': 0.24; 'aug': 0.24; 'seeing': 0.28; 'script.': 0.29; 'message-id:@mail.gmail.com': 0.29; 'script': 0.29; 'actually': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'however,': 0.34; 'setting': 0.34; 'fri,': 0.36; 'created': 0.36; 'skip:" 10': 0.36; 'run': 0.37; 'something': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'hit': 0.40; 'where': 0.40; 'your': 0.61; 'surfing': 0.67; "browser's": 0.84; 'consumed': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0KBt+QF7dB9NohrBBY9ba3+YX7AuqejcSNeDku55Ztw=; b=SaG/3cgJt2t+LoNT/xpvcXMd6iWZoD4ghSa3SwnDsdG8hKG0SiooQAg+eN5V4h4WGV 7NhsCo6aHzW7y4XB5k5DyA2J8M6jFzng/7EWSy+pXCu0VphiL2zCx0YaGdjE0lI20tH3 XYZRa2Vkf0COSRyqBQp2uCZ4BtKd3yLbboBOM= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 12 Aug 2011 21:29:25 +0100 Subject: Re: Problem reading HTTP_COOKIE From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313180967 news.xs4all.nl 23978 [2001:888:2000:d::a6]:34130 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11305 On Fri, Aug 12, 2011 at 4:55 PM, Jack Hatterly wrote: > It prints "None". However, when I look in my browser's cookie jar, there is > a cookie "www.my_site.com" 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. ChrisA