Re: [Tutor] Getting HTTP response codes

2007-01-30 Thread Kent Johnson
William O'Higgins Witteman wrote: > I am looking to get the HTTP response from a URI - 200, 404, etc. I'm > not sure which module I should look at. I've looked at urllib and > urllib2, but they only seem to provide this information in Exceptions, > and then only if there is an error. That's fine

[Tutor] Getting HTTP response codes

2007-01-30 Thread William O'Higgins Witteman
I am looking to get the HTTP response from a URI - 200, 404, etc. I'm not sure which module I should look at. I've looked at urllib and urllib2, but they only seem to provide this information in Exceptions, and then only if there is an error. That's fine if I'm only looking for implicit 200's, b