urlretrieve can't send headers

T

triplezone3

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
 
D

Diez B. Roggisch

triplezone3 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top