2017-04-16 81 views

回答

2

-H是额外的首部发送时请求包括HTTP到服务器,你不应该在url之前使用它。

您可能需要做curl -X PUT --upload-file image.jpg -H "Content-Type: image/jpeg" http://localhost:8080/rest/TestUpload/newexcel