urllib http status codes

Discussion in 'Python' started by Alvin A. Delagon, Dec 29, 2005.

  1. Greetings!

    Is there any way I can obtain the HTTP status codes when using the
    urllib module? As of now I can only think of doing a regex on the
    result of the read(). Thanks in advance! ^_^
    Alvin A. Delagon, Dec 29, 2005
    #1
    1. Advertising

  2. Alvin A. Delagon

    Kent Johnson Guest

    Alvin A. Delagon wrote:
    > Greetings!
    >
    > Is there any way I can obtain the HTTP status codes when using the
    > urllib module? As of now I can only think of doing a regex on the
    > result of the read(). Thanks in advance! ^_^


    If you connect with httplib you get the status code directly from the
    response object.

    Kent
    Kent Johnson, Dec 29, 2005
    #2
    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. Andy Fish

    constants for http status codes

    Andy Fish, Mar 3, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    3,783
    Juan T. Llibre
    Mar 4, 2005
  2. =?Utf-8?B?RGFuaWVsIEtvcHA=?=

    Custom error pages for HTTP errors with IIS status codes

    =?Utf-8?B?RGFuaWVsIEtvcHA=?=, Jul 12, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    474
    =?Utf-8?B?RGFuaWVsIEtvcHA=?=
    Jul 12, 2005
  3. Patrick Useldinger

    urllib: http error codes

    Patrick Useldinger, Dec 18, 2003, in forum: Python
    Replies:
    1
    Views:
    424
    Patrick Useldinger
    Dec 18, 2003
  4. Replies:
    2
    Views:
    2,798
    Malcolm
    Aug 20, 2005
  5. Raterus

    WebClient + Credentials + HTTP 401 Status Codes

    Raterus, Feb 9, 2005, in forum: ASP .Net Security
    Replies:
    5
    Views:
    364
    Joe Kaplan \(MVP - ADSI\)
    Feb 10, 2005
Loading...

Share This Page