curl 명령 사용법

REST API POST 할 때 JSON 파일 보내기

$ curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
# Example
curl -X POST -H "Content-Type: application/json" -d @./test.json http://localhost:5000/api/test

참고

Leave a Reply