469,360 Members | 1,807 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

urlretrieve can't send headers

Hello. I'm using urllib.urlretrieve to download files,
because it provides a handy hook function.
Unfortunately, it won't let me send headers, which
could be quite useful. Is there any way I could do
this?

__________________________________________________ ________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Jun 27 '08 #1
1 1993
triplezone3 schrieb:
Hello. I'm using urllib.urlretrieve to download files,
because it provides a handy hook function.
Unfortunately, it won't let me send headers, which
could be quite useful. Is there any way I could do
this?
I suggest you look into urllib2. It allows you to explicitly create an
request-object that you can stuff with headers and parameters and what
you like.

diez
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sam Sungshik Kong | last post: by
1 post views Thread by Josh | last post: by
6 posts views Thread by scottyman | last post: by
6 posts views Thread by Sven | last post: by
1 post views Thread by silverburgh.meryl | last post: by
1 post views Thread by Abandoned | last post: by
reply views Thread by triplezone3 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.