POSTing file to Jenkins fails

前端 未结 1 782
旧时难觅i
旧时难觅i 2021-01-26 20:53

I\'m trying to POST a file to Jenkins from Python, via multipart/form-data. The request body looks like this:

--===============1849003312==
Content-Type: applica         


        
相关标签:
1条回答
  • 2021-01-26 21:03

    I believe the Content-Disposition: file; should be replaced with Content-Disposition: attachment;. The source code of FileUploadBase does not mention "file", and RFC 2183 does not list "file" as a value for content-disposition.

    0 讨论(0)
提交回复
热议问题