Post request with multipart/form-data in appengine python not working

前端 未结 2 1037
予麋鹿
予麋鹿 2020-12-18 05:44

I\'m attempting to send a multipart post request from an appengine app to an external (django) api hosted on dotcloud. The request includes some text and a file (pdf) and is

2条回答
  •  醉话见心
    2020-12-18 06:33

    You're urlencoding the data where you should be multipart_encoding it. Have a look at this: Trying to post multipart form data in python, won't post

提交回复
热议问题