http status response

Discussion in 'Python' started by Richard Eibrand, Apr 15, 2005.

  1. 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

    --
    Richard Eibrand
    Phone: +353 1 492 7444
    Mobile: +353 86 388 8887
    www.propylon.com
    Richard Eibrand, Apr 15, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike C
    Replies:
    1
    Views:
    487
    pythonhda
    Feb 16, 2004
  2. Replies:
    0
    Views:
    413
  3. Khai Doan
    Replies:
    2
    Views:
    154
    Thomas 'PointedEars' Lahn
    May 22, 2008
  4. Thomas 'PointedEars' Lahn

    [FYI] MSXML HTTP translates response status code 204 to 1223

    Thomas 'PointedEars' Lahn, Sep 7, 2009, in forum: Javascript
    Replies:
    4
    Views:
    364
    Diego Perini
    Sep 16, 2009
  5. iMath
    Replies:
    3
    Views:
    130
    iMath
    Jan 7, 2013
Loading...

Share This Page