반응형
[Option]
-X : Method (Default GET)
-H : Header
-d : Data
-v : Verbose
[Example]
$ curl -X GET "http://localhost"
$ curl -X POST "http://localhost"
$ curl -d '{"key":"value"}' -H "Content-Type: application/json; charset=utf-8" -X PUT "http://localhost"
$ curl -d "param1=value1¶m2=value2" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:3000/data
반응형
'스크립트' 카테고리의 다른 글
User agent를 이용한 모바일 체크 (0) | 2019.03.18 |
---|---|
html5 javascript 이미지 미리보기 (0) | 2018.11.29 |
cmd process kill (0) | 2018.11.17 |
javascript padStart - left padding (0) | 2018.11.07 |
jquery self unwrap (0) | 2018.11.06 |
jquery 확장 enter key function (0) | 2018.11.05 |
javascript cookie getCookie setCookie (0) | 2018.11.05 |
netstat unique ip (0) | 2018.09.10 |