0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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)

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

##参考
https://qiita.com/sensuikan1973/items/b2085a9cdc6d1e97e8f8

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?