May-15-2018, 10:05 AM
Hi,
We need to post a zip file on HTTP using Python 2.7.
We are using the below code which throwing exception:
Thanks and Regards
We need to post a zip file on HTTP using Python 2.7.
We are using the below code which throwing exception:
post_data = open(zipPath,u'rb') request = urllib2.Request(url,post_data.read().encode(u'utf-8')) request.add_header(u"Content-Type", u"application/zip")Please help.
Thanks and Regards