Connecting to internet under proxy

2006-07-24 Thread Chema
Hi all.

   I have a little script to connect to the internet and download some
files. I developed it in my house (direct connection) and it wordked
properly. But the problem is that in the office (under a proxy) it
doesn't run. My script is like:

import urllib
f=urllib.urlopen(SOME_WEB)
print f.read

I have tried to set the environmet variable
http_proxy="192.168.1.100:2929" and also:

import urllib
proxy={'http','http://192.168.1.100:2929'} and using
f=urllib.urlopen(SOME_WEB, proxy)
print f.read

the error was always the same:

(11001, 'getaddrinfo failed')


Any idea?? The proxy that we use is normally, in some programs I use a
tipical http proxy without authentification without problem.

Thanks in advanced.

Bye

-- 
http://mail.python.org/mailman/listinfo/python-list


[ANN] Python-es mailing list changes home

2010-01-19 Thread Chema Cortes
=== Python-es mailing list changes home ===

Due to technical problems with the site that usually ran the Python-es
mailing list (Python list for the Spanish speaking community), we are
setting up a new one under the python.org umbrella.  Hence, the new
list will become  (the old one was
).

Please feel free to subscribe to the new list in:

http://mail.python.org/mailman/listinfo/python-es

Thanks!

=== La lista de distribución Python-es cambia de lugar ===

Debido a problemas técnicos con el sitio que normalmente albergaba la
lista de Python-es (Lista de Python para la comunidad
hispano-hablante), estamos configurando una nueva en el sitio
python.org.  Así que la nueva lista será  (en
sustitución de la antigua ).

Por favor, si lo deseas, date de alta en la nueva lista en:

http://mail.python.org/mailman/listinfo/python-es

¡Gracias!

Chema Cortes, Oswaldo Hernández y Francesc Alted
-- 
http://mail.python.org/mailman/listinfo/python-list