Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.093 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.03; 'everyone!': 0.05; 'subject:method': 0.09; 'subject:headers': 0.16; 'subject:urllib': 0.16; 'message-id:@mail.gmail.com': 0.28; 'alternatives': 0.29; 'subject:?': 0.31; 'headers': 0.32; 'to:addr:python-list': 0.34; 'there': 0.34; 'received:google.com': 0.38; 'received:209.85': 0.38; 'hello,': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'received:209.85.218.46': 0.91; 'received:mail- yi0-f46.google.com': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=u+A0epB6nsYS7eH/W3UI2Z1MtqLcujfcWqPwblCqJpU=; b=ae6Ha5NX0sC7cVbxY+YtAwkH4/vR34oEuZ7gzQNjBoOElqjQdiMNqR2rWCO+KdQ2Xe AJZsmtkp70lCPAvIUY9MSeEkqd0DBrjeYxfw2SBPrpSH07UO5Sg7376wsr+lJ7Rdk10A MqRE5G/rL6jAL0WdseAGVhYGaxxZ7hQ0rJwiA= MIME-Version: 1.0 Date: Fri, 1 Jul 2011 18:03:39 +1100 Subject: urllib, urlretrieve method, how to get headers? From: =?UTF-8?B?0JTQsNC90LjQuNC7INCg0YvQttC60L7Qsg==?= To: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309503827 news.xs4all.nl 21794 [2001:888:2000:d::a6]:48005 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8625 Hello, everyone! How can I get headers with urlretrieve? I want to send request and get headers with necessary information before I execute urlretrieve(). Or are there any alternatives for urlretrieve()? -- Regards, Daniil