Python equivalent to curls --form: Create multipart form-data post request with data in “form” parameter
问题 I'm looking for a python equivalent to this curl command: curl --referer "https://myreferer" --insecure --form "myparam=1234" https://myurl which results in the following request (taken from httpbin.org/post): { "args": {}, "data": "", "files": {}, "form": { "myparam": "1234" }, "headers": { "Accept": "*/*", "Connection": "close", "Content-Length": "142", "Content-Type": "multipart/form-data; boundary=----------------------------29a1ce32cc53", "Host": "httpbin.org", "Referer": "https:/