httplib and proxies

Discussion in 'Python' started by Lothar Scholz, Jun 3, 2004.

  1. Hello,

    is it possible to get a webpage with httplib (or any other python
    library) through a proxy server ? Can't find anything about this in
    the documentation.
     
    Lothar Scholz, Jun 3, 2004
    #1
    1. Advertising

  2. Lothar Scholz

    fishboy Guest

    On 3 Jun 2004 13:50:17 -0700, (Lothar Scholz) wrote:

    >Hello,
    >
    >is it possible to get a webpage with httplib (or any other python
    >library) through a proxy server ? Can't find anything about this in
    >the documentation.


    Check out urllib.

    ><{{{*>
     
    fishboy, Jun 4, 2004
    #2
    1. Advertising

  3. Lothar Scholz

    Colin Brown Guest

    "Lothar Scholz" <> wrote in message
    news:...
    > Hello,
    >
    > is it possible to get a webpage with httplib (or any other python
    > library) through a proxy server ? Can't find anything about this in
    > the documentation.


    If you use urllib, you might want to try adding an empty dictionary:
    proxies={} to your urllib.urlopen.
    This enabled us to get past a Windows proxy server.

    Colin Brown
    PyNZ
     
    Colin Brown, Jun 4, 2004
    #3
    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. Roger
    Replies:
    3
    Views:
    987
    Daniel Hagen
    Jul 13, 2004
  2. Paul Taylor

    Java and proxies

    Paul Taylor, Jun 28, 2005, in forum: Java
    Replies:
    0
    Views:
    326
    Paul Taylor
    Jun 28, 2005
  3. Fuzzyman

    urllib2, https, and proxies

    Fuzzyman, Jun 29, 2005, in forum: Python
    Replies:
    0
    Views:
    407
    Fuzzyman
    Jun 29, 2005
  4. tomazi75-nospam(at)gmail.com

    urllib2 and proxies support ?

    tomazi75-nospam(at)gmail.com, Jan 4, 2006, in forum: Python
    Replies:
    1
    Views:
    375
  5. Replies:
    0
    Views:
    788
Loading...

Share This Page