FAQ
Pytunnel has been updated.

It now has the ability to act as a standalone tunnelling server.
It is typically useful for tunneling things like ssl through a proxy.

The library is still being worked on but you should find it useful.

You can find it at:

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

Examples:
Standalone mode:
1)Setup tunnel w/defaults:
./pytunnel.py --proxy_host phost --host login.yahoo.com
2)It returns a port to standard output that it started on.

Use as a Library:
1)define your function, to use pytunnel supplied ip address and port
def tunnel_this(ip='',port=0):
conn = httplib.HTTPSConnection(ip,port=port)
conn.putrequest('GET', '/').endheaders()
response = conn.getresponse()
2)Build the tunnel
tunnel=pytunnel.build(host=login.yahoo.com,\
proxy_host=phost,proxy_user=u,proxy_pass=p,timeout=0.5)
tunnel.run(tunnel_this)

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedAug 1, '03 at 11:56p
activeAug 1, '03 at 11:56p
posts1
users1
websitepython.org

1 user in discussion

John: 1 post

People

Translate

site design / logo © 2022 Grokbase