[issue2151] no way to get http result status from urllib

2008-02-21 Thread Georg Brandl
Georg Brandl added the comment: I've committed a patch for this in the trunk, the addinfourl object has a "code" attribute there. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2151] no way to get http result status from urllib

2008-02-21 Thread paul rubin
New submission from paul rubin: I don't see any way in the docs to get the status of an http request, in particular I want to know whether it's a 404. It does show up in the guts of the library so maybe I can extract it somehow, but there should be a simple documented way. Also, the urllib doc