using urlretrive/urlopen

rustom rustompmody at gmail.com
Sun May 17 03:09:39 EDT 2009


On May 16, 6:30 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Fri, 15 May 2009 12:03:09 -0300, Rustom Mody <rustompm... at gmail.com>  
> escribió:
>
> > I am trying to talk to a server that runs on localhost
> > The server runs onhttp://localhost:7000/and that opens alright in  a
> > web browser.
>
> > However if I use urlopen or urlretrieve what I get is this 'file' --
> > obviously not the one that the browser gets:
>
> > <html><body bgcolor="#ffffff">
> > Query 'http://localhost:7000/'not implemented
> > </body></html>
> > Any tips/clues?
>
> Please post the code you're using to access the server.
> Do you have any proxy set up?
>
> --
> Gabriel Genellina

Thanks Gabriel!

urlopen("http://localhost:7000", proxies={})
seems to be what I needed.



More information about the Python-list mailing list