Soemthing wrong w/ urllib module or something.

Daniel Larsson daniel.j.larsson at gmail.com
Wed Sep 5 13:31:48 EDT 2007


Are you using http proxying when you browse to the server? Have you tried to
do

$ curl http://DOMAINHERE/

If that works, connecting with a plain socket should work too. Otherwise, I
believe urllib has support for a proxying server, check the docs.

On 9/5/07, Lamonte Harris <pyth0nc0d3r at gmail.com> wrote:
>
> Anyone got an answer for this?
>
> On 9/3/07, Lamonte Harris <pyth0nc0d3r at gmail.com> wrote:
> >
> > Yeah I can browse it like normal.  For some reason though my News System
> > that worked like a charm just stopped working also.  Is there any
> > alternatives that I could try to use to POST to a PHP script?
> >
> > On 9/3/07, Tim Golden <mail at timgolden.me.uk > wrote:
> > >
> > > [Tim Golden]
> > > >> To do the obvious, can you open a socket connection
> > > >> to the domain you're using?
> > > >>
> > > >> <code>
> > > >> from socket import socket
> > > >> socket ().connect (("DOMAINHERE", 80))
> > > >>
> > > >> </code>
> > > >>
> > > >> or does it give you the same error?
> > >
> > > [Lamonte Harris]
> > > > Yeah I basically got the same error.
> > > >
> > > > Traceback (most recent call last):
> > > >   File "<stdin>", line 1, in <module>
> > > >   File "<string>", line 1, in connect
> > > > socket.error: (10053, 'Software caused connection abort')
> > >
> > > OK, then *something's* blocking access to that host (at least)
> > > on port 80. Can you browse the web normally from this machine?
> > > In particular, can you browse to that site ("DOMAINHERE")?
> > >
> > > TJG
> > >
> >
> >
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070905/7b850d39/attachment.html>


More information about the Python-list mailing list