http status response

R

Richard Eibrand

Hi guys,

How do I go about getting the http response status as with the httplib
method <connection_handle>.getresponse() using urllib2?

Thing is I need to authenticate with a server, which I can do with urllib2
(by passing credentials), but I also need to get the status response codes
and not only when raised as an exception.

Any ideas? I've gone google blind at this stage - as I'm not able to find
anything useful.

tia,

R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top