【问题标题】:how to send a http put request to the server?如何向服务器发送 http put 请求?
【发布时间】:2014-08-26 04:27:10
【问题描述】:

我对如何发送 HTTP put 请求一无所知,但我确实需要这样做,请帮助我

格式如下:

PUT / HTTP/1.1
Host: hey.domain.com
Content-type: application/j son
Content-Length: LENGTH
X-name of key-Key: e97d6b85fc85568a63bcfce872caeee028ea5b61
{
"name": "Bruce Wayne",
"email": "bruce@gothamcity.com",
"phone": "+919999888899",
"experienced": false,
"profile": "python"
}

【问题讨论】:

    标签: http put


    【解决方案1】:

    使用卷曲

    curl -XPUT -d '{"name": "Bruce Wayne", "email": "bruce@gothamcity.com", "phone": \
        "+919999888899", "experienced": false, "profile": "python" }' \
         -H "Content-Type: application/json" http://hey.domain.com
    

    【讨论】:

    • 打开终端输入上面的命令,没有视频——真的,真的很简单
    • 我在windows上试了一下,其实什么都不知道。
    • 啊,好的,很高兴你想通了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-24
    • 2016-01-16
    相关资源
    最近更新 更多