| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

proxy.py

Go to the documentation of this file.
00001 import httplib, os, urlparse
00002 class ProxiedHTTPConnection(httplib.HTTPConnection):
00003     def __init__(self,host,port=None,strict=None):
00004         hp = os.environ['http_proxy']
00005         url = urlparse.urlparse(hp)
00006         host,port = url[1].split(':')       # 192.168.1.130:3128
00007         httplib.HTTPConnection.__init__(self,host,port,strict)
00008         return
00009     pass
00010     
00011 def check():
00012     if os.environ.has_key('http_proxy'):
00013         import ZSI
00014         ZSI.client.Binding.defaultHttpTransport = ProxiedHTTPConnection
00015     return
00016 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:13:00 2011 for DybPython by doxygen 1.4.7