Making a POST call instead of GET using urllib2

The Solution to Making a POST call instead of GET using urllib2 is


This may have been answered before: Python URLLib / URLLib2 POST.

Your server is likely performing a 302 redirect from http://myserver/post_service to http://myserver/post_service/. When the 302 redirect is performed, the request changes from POST to GET (see Issue 1401). Try changing url to http://myserver/post_service/.

~ Answered on 2011-06-14 19:13:24


Most Viewed Questions: