Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'debug': 0.07; "subject:' ": 0.07; 'subject:Error': 0.07; 'subject:trying': 0.09; 'subject:using': 0.09; 'exists,': 0.16; 'httplib': 0.16; 'subject:login': 0.16; 'subject:when': 0.16; 'urllib': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'header': 0.24; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'ideal': 0.29; 'mode': 0.30; 'went': 0.31; 'though.': 0.31; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'january': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'traffic': 0.61; 'content-disposition:inline': 0.62; 'header:Message-Id:1': 0.63; 'sunday': 0.68; 'firing': 0.84; 'subject:skip:H 10': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; bh=hzu6oqSOm5Q2tmv7UEfz1eaGuB6/b9Zfy7KpnJwNLfE=; b=Ybe2LA+bd7EfzJ2Bar2yTUq2PzwOJt2lXqKz11trSPK/e8s3oAItZj0Vdanxmqyjwe ySQx2HJkmLcOvFMD26NzUYuVZG35O78Lefo/1l/GVysLTI+9qVexQ7UHprKhnk92bET5 3EiXGNOb9/W0eJEhyAXpm/BbOGnMzGIGcReqsbvlw6HjC4I+8A0x5SGOYHP2jH2pncRj swsF2+SvXgj3hUsOOU+6j36SYy2y2W3BGoJRP0NKof6TXpCX4lb0fV55plNC7ta6CRK2 wBs1z8excEQtSJrtrMsTG38ME5xwcvegEDAp8R+lxlD1hImp5opQqNGOpAHhzuE3/rx2 A93w== X-Received: by 10.66.146.229 with SMTP id tf5mr24671407pab.50.1389539929141; Sun, 12 Jan 2014 07:18:49 -0800 (PST) From: xDog Walker To: python-list@python.org Subject: Re: Python: 404 Error when trying to login a webpage by using 'urllib' and 'HTTPCookieProcessor' Date: Sun, 12 Jan 2014 07:17:41 -0800 User-Agent: KMail/1.9.5 References: <9e7e031f-b6db-43fc-84d2-ef68916ec756@googlegroups.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389539937 news.xs4all.nl 2945 [2001:888:2000:d::a6]:48896 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63777 On Sunday 2014 January 12 04:42, Chris Angelico wrote: > As a last resort, try firing up Wireshark or something and watch > exactly what gets sent and received. I went looking through the docs > for a "verbose" mode or a "debug" setting but can't find one - that'd > be ideal if it exists, though. I think you can set debug on httplib before using urllib to get the header traffic printed. I don't recall exactly how to do it though. -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers.