How to get HTTP error when using urlretrieve()
Alex Martelli
aleax at mac.com
Sat Apr 28 23:51:14 EDT 2007
silverburgh.meryl at gmail.com <silverburgh.meryl at gmail.com> wrote:
> 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.html> gives good
information about these issues.
Alex
More information about the Python-list
mailing list