dealing with a proxy

Steven Adams sada7681 at mail.usyd.edu.au
Fri Mar 3 02:03:32 CET 2000


hmm, I think I've found it,

do i first:

h = httplib.HTTP(proxyhost, proxyport)

then send requests

h.putrequest('GET', 'http://somehwere.somedomain')

is there a better method?

Steven Adams <sada7681 at mail.usyd.edu.au> wrote in message
news:89mr33$4je$1 at news1.wire.net.au...
> Hi all,
>
> how do I format my request to get an url/socket when there is a proxy in
the
> middle?
>
> I can connect fine when there is no proxy, but I'm not sure what needs to
be
> done when there is, does the rquest need to be phrased differently, or do
I
> need to call some other function beforehand?
>
> any tips?
>
> thanks, Steven
>
>





More information about the Python-list mailing list