How to convey the length of the content, for example. --header Content-Length:1000 in the curl command. I used it as a team, but it did not work
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"
This command submits a file to web services developed in Jersey
source share