我必须使用带有此参数的 CURL 创建 POST 请求:
Content-Type:multipart/form-data
Content-Disposition: form-data; name="fileName" Content-Type: application/json {"fileName":[filename],"codFornitore":205900}
Content-Disposition: form-data; name="file"; filename="[filename]" Content-Type: [based on type of file] [byte array of file content]
我如何创建一个字符串来定义这种类型的帖子正文及其 curl 调用?