2011/3/24 Douglas Cerna <douglasce...@yahoo.com>: > --- On Thu, 3/24/11, Olemis Lang (Simelix) <olemis...@gmail.com> wrote: > >> Q: >> - Cómo c obtiene el código (status) de una respuesta >> HTTP >> con Python 2.5 ? > > Yo utilizo: > >>>> import urllib2 >>>> request = urllib2.Request('http://www.google.com') >>>> result = urllib2.urlopen(request) >>>> result.code > 200 > > Espero te sirva. >
Sí . Gracias !!! -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/