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

25 Replies, 2403 Views

我之前也卡在这,后来发现是空格问题!
`-H`后面必须紧跟`"`,不能有空格。
比如:
`curl -H"Content-Type: application/json"`
这样写才对。

Messages In This Thread



Users browsing this thread: 1 Guest(s)