Making a POST call instead of GET using urllib2

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/.

Download Returned Zip file from URL

Most people recommend using requests if it is available, and the requests documentation recommends this for downloading and saving raw data from a url: Since the answer asks about downloading and saving the zip file, I haven’t gone into details regarding reading the zip file. See one of the many answers below for possibilities. If … Read more

urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error

If you just want to bypass verification, you can create a new SSLContext. By default newly created contexts use CERT_NONE. Be careful with this as stated in section 17.3.7.2.1 When calling the SSLContext constructor directly, CERT_NONE is the default. Since it does not authenticate the other peer, it can be insecure, especially in client mode where most of time you … Read more