On 02/04/10 17:06, Jose Caballero wrote:
$ curl --head http://www.google.comm HTTP/1.0 503 Service Unavailable
Creo que han salido ya algunas soluciones con Python. Sobre cómo obtener el código HTTP de respuesta con curl (siguiendo redirecciones), una propuesta:
$ curl -s -L --head -w "%{http_code}\n" http://www.google.com/aaa | tail -n1 404 _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/