Curl

Curl

Curl

linux에서 command line용 data transfer tool이다. 쉽게 말해 postman과 비슷하다.
설치 및 확인
curl -V
apt-get install curl
요청 보내기
curl -X ‘GET http://127.0.0.1:3000/api/users/bakyeono’
curl -X ‘POST http://127.0.0.1:3000/api/languages/ansi-common’
parameter가 있는 요청 보내기
curl -X GET ‘http://127.0.0.1:3000/api?id=’$1
header가 있는 요청 보내기
curl -X POST -H ‘Content-Type: application/json’ ‘http://127.0.0.1:3000’

댓글

가장 많이 본 글