pytunnel 0.21 and urllib3.py

Discussion in 'Python' started by john, Aug 8, 2003.

  1. john

    john Guest

    pytunnel has been further updated with .netrc support and a automatic
    shutdown of the standalone process after it's been idle.

    As an example, I've also just started a wrapper for urllib2.py, for
    lack of a better name, I've called it urllib3.py. It ultimately calls
    urllib2.py to do the heavy lifting but first sets up up a tunnel (via
    by pytunnel).

    You would use it like:

    import urllib3
    print urllib3.urlopen('https://login.yahoo.com/',ssl='proxy_server').read()

    The ssl option tells urllib3 to setup a tunnel with proxy_server.


    Both programs are at:

    http://savannah.nongnu.org/download/pytunnel/urllib3.py
    http://savannah.nongnu.org/download/pytunnel/pytunnel.py


    What is pytunnel?

    Pytunnel is a program that tunnels TCP/IP through another server like
    a proxy.
    A typical use would be to tunnel through an http proxy. Pytunnel
    supports basic
    http proxy authentication. Pytunnel allows your software to connect to
    the local tunnel rather than connecting to the remote server directly.
    For example, if doing SSL, instead connecting to the webhost on port
    443 you connect to localhost using the locally determined port.

    Pytunnel makes use of several technologies asyncore, threads, and
    non-blocking sockets w\a custom recv_all to take advantage of that.
    The tunnel has no knowledge of the protocol being tunneled through it,
    instead, it keeps the tunnel alive as long as any bit of data, now
    matter how tiny, comes across it. Once the data stops after a user
    defined timeout, tunnel shuts down.

    This program can be either used as a library or standalone tunnel.


    john
     
    john, Aug 8, 2003
    #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. Nut Cracker
    Replies:
    1
    Views:
    349
  2. jakk
    Replies:
    4
    Views:
    12,402
  3. Tim Meagher
    Replies:
    8
    Views:
    1,301
    Karl Seguin
    Jun 18, 2005
  4. john
    Replies:
    1
    Views:
    383
    Ng Pheng Siong
    Aug 1, 2003
  5. titi

    if and and vs if and,and

    titi, Mar 9, 2007, in forum: VHDL
    Replies:
    4
    Views:
    602
    Mike Treseler
    Mar 11, 2007
Loading...

Share This Page