Created
June 3, 2022 15:28
-
-
Save haeramkeem/0c21e7cbaa63c0f3df367a30ed45c502 to your computer and use it in GitHub Desktop.
cURL with HTTP/POST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ref: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=wideeyed&logNo=221350638501 | |
curl -d '{"key1":"value1", "key2":"value2"}' \ | |
-H "Content-Type: application/json" \ | |
-X POST http://localhost:8000/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment