Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:2.7': 0.09; 'thus,': 0.09; 'subject:How': 0.10; 'exactly?': 0.16; 'fabio': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:making': 0.16; 'subject:requests': 0.16; 'subject:when': 0.16; 'bit': 0.19; "python's": 0.19; 'code,': 0.22; 'example': 0.22; 'header:User- Agent:1': 0.23; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'tried': 0.27; 'code': 0.31; 'towards': 0.31; 'writes:': 0.31; '(i.e.': 0.33; 'problem': 0.35; 'subject: (': 0.35; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'list': 0.37; 'work?': 0.38; 'to:addr:python-list': 0.38; 'expect': 0.39; 'explain': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'details.': 0.61; 'further': 0.61; 'complete': 0.62; 'received:217': 0.63; 'provide': 0.64; 'details': 0.65; 'hints': 0.68; 'remark': 0.84; 'you).': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: How to keep cookies when making http requests (Python 2.7) Date: Thu, 22 Aug 2013 08:08:47 +0200 References: <7e79a9b4-0bf9-4756-afd4-3bc127360b95@googlegroups.com> <8266faf3-892b-4e49-9b38-87f0030250fc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e097cc.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:d2sfQy1UxuY+6b9bpQHzTjANbqw= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377151743 news.xs4all.nl 15978 [2001:888:2000:d::a6]:36585 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52813 Luca Cerone writes: >... > Have you tried this code to check if this work? Not this code, but code like this (as I have written). > If it works as intended can you explain a bit better > what it does exactly? Fabio already did the explanation. Let me make an additional remark however: you should not expect to get complete details in a list like this - but only hints towards a solution for your problem (i.e. there remains some work for you). Thus, I expect you to read the "cookielib/cookiejar" documentation (part of Python's standard documentation) in order to understand my example code - before I would be ready to provide further details.