LoginSignup
0
0

More than 3 years have passed since last update.

[HTTP]CurlコマンドでJSON形式のPOSTを行う方法

Last updated at Posted at 2020-12-24

はじめに

CurlコマンドでPOSTをする機会があり調べてみたので備忘録に残す

方法

curl -X POST -H "Content-Type: application/json" -d '{"カラム名":"内容", "カラム名":"内容"}' path(例 localhost:3000/items)

複数のパラメーターがある場合は「 , 」で繋げる

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0