How to get HTTP error when using urlretrieve()

silverburgh.meryl at gmail.com silverburgh.meryl at gmail.com
Sat Apr 28 23:14:17 EDT 2007


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.




More information about the Python-list mailing list