Re: How to get HTTP error when using urlretrieve()

2007-04-28 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> 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?

How to get HTTP error when using urlretrieve()

2007-04-28 Thread [EMAIL PROTECTED]
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. -- http://mail.python.org/mailman/l