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

25 Replies, 2404 Views

试试用`curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}'`
有时候服务器需要明确的请求方法和数据体才能识别header。

Messages In This Thread



Users browsing this thread: 1 Guest(s)