1

I want to send ZIP file with request.post.

My code:

f = open("file.zip", 'rb')

files = {

    "message": f

}

result = requests.post(url, files=files)

I'm trying with this code but it does not work

whackamadoodle3000
  • 6,684
  • 4
  • 27
  • 44
Jesus
  • 11
  • 1
  • 2
  • 1
    Possible duplicate of [Python Requests - Post a zip file with multipart/form-data](https://stackoverflow.com/questions/18208109/python-requests-post-a-zip-file-with-multipart-form-data) – MT-FreeHK Jul 26 '18 at 11:05

0 Answers0