JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

[Bash] Send post request with payload to server by using curl

发布时间 2023-12-13 02:31:45作者: Zhentiw
#!/bin/bash

# url will be a param been passed in
url=$1

curl -X POST http://localhost:3000/endpoint -d "{\"payload\":\"$url\"}" -H "content-type: application/json"

 

    本栏目推荐文章
  • SQL Server 检测是不是数字型数据的两种方法
  • 【Shell基础】Bash基础与Linux三剑客
  • SQL Server 高性能写入的一些总结
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • A connection was successfully established with the server but then an error
  • SQL SERVER日期时间转字符串
  • Windows Server 2016 & 2019 工作站速配脚本
  • sql server 保留2位小数
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • git bash报错fatal: detected dubious ownership in repository at的解决方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们