<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.5500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Steven Adams:</FONT></DIV>
<DIV><FONT face=Arial size=2>h = httplib.HTTP(proxyhost,proxyport)</FONT></DIV>
<DIV><FONT face=Arial 
size=2>h.putrequest('GET','http://somewhere.somedomain')</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>David Fisher:</FONT></DIV>
<DIV><FONT face=Arial size=2>> urllib has proxy support built-in, but not 
documented</FONT></DIV>
<DIV><FONT face=Arial size=2>proxy = 
{'http':r'http://192.168.1.1:3128'}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Me:</FONT></DIV>
<DIV><FONT face=Arial size=2>Don't know exxactly for which modules it actually 
works, but setting the proxy in os.environ is a way with some of the modules 
I've used at least.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> import os<BR>>>> 
os.environ['http_proxy'] = 'http://Inetserver' #This is the name of our proxy, 
running on port 80</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> import urllib<BR>>>> page = 
urllib.urlopen('http://www.python.org')</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> print 
page.read()<BR><HTML></FONT></DIV>
<DIV><FONT face=Arial size=2><!-- THIS PAGE IS AUTOMATICALLY GENERATED.  
DO NOT EDIT. --></FONT></DIV>
<DIV><FONT face=Arial size=2><!-- Fri Mar  3 10:31:14 2000 
--></FONT></DIV>
<DIV><FONT face=Arial size=2>etc.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Ulf Engström</FONT></DIV></BODY></HTML>