Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Hidden field 전송시 일반 필드처럼 name=value 형식으로 전송하면 된다.

HTTP POST

...

data

-d, --data 옵션뒤에 전송할 데이타를 기술

Code Block
curl -L -v -d '{"name": "superman", "age" : 30}' -H "Accept: application/json" -H "Content-Type: application/json" http://posttestserver.com/post.php
Note

-d 옵션을 추가하면 -X POST 는 제외 가능


HTTP POST File

file을 POST할 경우 file name 앞에 @ 를 붙여줌 

...