Curl の http クライアントの使い方 (Post)
curl で POST を行う方法です。
実行結果は同じです。
1) パラメーター名と値を与える。
curl -X POST https://httpbin.org/post -d 'user=jiro' -d 'password=123456'
2)JSON 形式で値を与える。
curl -X POST -H "Content-Type: application/json" \
-d '{"user":"jiro","password":"123456"}' \
https://httpbin.org/post
3)JSONファイルを使う。
curl -X POST -H "Content-Type: application/json" \
-d@in01.json \
https://httpbin.org/post
in01.json
{"user":"jiro","password":"123456"}
Author And Source
この問題について(Curl の http クライアントの使い方 (Post)), 我々は、より多くの情報をここで見つけました https://qiita.com/ekzemplaro/items/4be2231e4419de5ba765著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .