By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

How to get HTTP error when using urlretrieve()

P: n/a
Hi,

I use urlretrieve to retrieve resources from a http server.
Can you please tell me how can I get the HTTP error (whenever
happens)?

And what kind of different exception urlretrieve will throw? e.g.
unknown host? connection timeout? HTTP error?

Thank you.

Apr 29 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
si***************@gmail.com <si***************@gmail.comwrote:
Hi,

I use urlretrieve to retrieve resources from a http server.
Can you please tell me how can I get the HTTP error (whenever
happens)?

And what kind of different exception urlretrieve will throw? e.g.
unknown host? connection timeout? HTTP error?
I think <http://www.python.org/doc//lib/module-urllib.htmlgives good
information about these issues.
Alex
Apr 29 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.