我怎样才能传递内容长度,例如。 --header Content-Length:1000
在curl命令中。
我在命令中使用它,但它没有用
curl -v -X POST -u "xxx@gmail.com:xxx123" \
--header "Content-Length: 1000" \
--header "Content-Type: multipart/mixed" \
--header "X-REQUEST-ID:7fc7d038-4306-4fc5-89c3-7ac8a12a30d0" \
-F "request={\"bumId\":\"d51f2978-5ce8-4c71-8503-b0ca438741dd\",\"fileType\":\"imageFile\"};type=application/json" \
-F "file=@D:/file.pdf" \
"http://localhost:9090/pro/v1/files"
此命令将文件发布到Jersey Java中开发的Web服务