Article View: pl.comp.lang.python
Article #27880Re: pobieranie pliku + autoryzacja
From: Trimar
Date: Thu, 13 Jan 2011 14:59
Date: Thu, 13 Jan 2011 14:59
19 lines
1645 bytes
1645 bytes
W dniu 2011-01-13 14:26, Desper0 pisze: >> Mo e zobacz tak >> authentication_handler=urllib.HTTPBasicAuthHandler(urllib.HTTPPasswordMgrWithDefaultRealm()) >> authentication_handler.add_password(None,url2,'user','password') >> auth_opener = urllib.build_opener(authentication_handler) >> urllib.install_opener(auth_opener) >> req = urllib.Request(url2) > > Niestety, > efekt ten sam :401 A możesz dodać coś takiego import httplib httplib.HTTPConnection.debuglevel = 1 Zobaczymy co tam się majta po http i może da się coś poradzić Pozdrawiam Trimar
Technical Details
Message-ID:
<ign40u$e8q$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mailReferences:
<e62ff482-6c5b-4eef-b0d4-fcccb68a182e@j29g2000yqm.googlegroups.com> <igmdfu$ptd$1@news.onet.pl> <c7cca82f-ec09-481c-b1ca-715b98b11e73@u3g2000vbj.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail From: Trimar <trimar12@poczta.onet.pl> Newsgroups: pl.comp.lang.python Subject: Re: pobieranie pliku + autoryzacja Date: Thu, 13 Jan 2011 15:59:23 +0100 Organization: http://onet.pl Lines: 20 Message-ID: <ign40u$e8q$1@news.onet.pl> References: <e62ff482-6c5b-4eef-b0d4-fcccb68a182e@j29g2000yqm.googlegroups.com> <igmdfu$ptd$1@news.onet.pl> <c7cca82f-ec09-481c-b1ca-715b98b11e73@u3g2000vbj.googlegroups.com> NNTP-Posting-Host: stallman.rootnode.net Mime-Version: 1.0 X-Trace: news.onet.pl 1294930782 14618 89.248.165.10 (13 Jan 2011 14:59:42 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Thu, 13 Jan 2011 14:59:42 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: <c7cca82f-ec09-481c-b1ca-715b98b11e73@u3g2000vbj.googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit