探索建站和运维乐趣

标签:curl post方法

记录用curl post请求json方法-老部落
基础文档

记录用curl post请求json方法

可以使用curl命令发送POST请求并将JSON数据作为请求体传递。以下是一个示例: 其中,-X POST指定了HTTP方法为POST;-H "Content-Type: application/json"指定了请求体的内容类型为JSON格...