Skip to content

Instantly share code, notes, and snippets.

@haeramkeem
Created June 3, 2022 15:28
Show Gist options
  • Save haeramkeem/0c21e7cbaa63c0f3df367a30ed45c502 to your computer and use it in GitHub Desktop.
Save haeramkeem/0c21e7cbaa63c0f3df367a30ed45c502 to your computer and use it in GitHub Desktop.
cURL with HTTP/POST
#!/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