views:

26

answers:

0

Using python urllib or urllib2, for the life of me, I can not read the following URL: http://celem.michoacan.gob.mx/celem/publica/ficha_informativa_ordenamiento.jsp?p_id_ordenamiento=478

This page reads fine with Firefox or IE. I tried spoofing the User-Agent to simulate Firefox to no avail. This site uses cookies. I also tried using the cookielib module to no avail.

The server responds with the HTTP Error 500 (Internal Server Error). Presumably there is something in the HTTP header that python creates or something to do with cookies that is causing the problem.