如何在curl 带header时正确设置请求头?遇到问题求解答!

25 Replies, 2394 Views

老哥,curl 带header的格式没问题,但有时候服务器对大小写敏感。
比如`Content-Type`写成`content-type`可能就不认了。
还有,记得检查一下请求体是不是JSON格式,不然header设对了也没用。

Messages In This Thread



Users browsing this thread: 1 Guest(s)