New User - Using tutorial and Docs - POST returns 302 Found

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Mar 4 12:02:12 EST 2009


En Wed, 04 Mar 2009 14:36:21 -0200, JohnV <loftmaster at gmail.com> escribió:

> Couldn't figure out the proper usage of the urllib2 functions to fix
> the 302 Found problem, but what I did was change the URL to a php page
> and httplib.HTTPConnection() worked fine when a "POST" was sent to
> that page.  So, when I have learned a bit more about Python, I may
> well go back and try to resolve the problem listed here. Thanks
> Gabriel, for the assistance you did provide.

Sorry, I think you didn't get my later post -- than in fact was from a  
month ago...
See http://article.gmane.org/gmane.comp.python.general/613312/
urllib2 should handle a 302 redirect automatically.

-- 
Gabriel Genellina




More information about the Python-list mailing list