curl https://www.naver.com/
By default the response headers are hidden in the output of curl. To show them, use the i option:
curl -i https://www.naver.com/
# Header 만 출력 (no response body)
curl -I https://www.naver.com/
The X option lets you change the HTTP method used. By default, GET is used, and it’s the same as writing
# application/x-www-form-urlencoded Content-Type is sent.
curl -d "option=value&something=anothervalue" -X POST https://www.naver.com/
In this case you need to explicitly set the Content-Type header, by using the H option:
curl -d '{"option": "value", "something": "anothervalue"}' -H "Content-Type: application/json" -X POST https://www.naver.com/
curl -d "@my-file.json" -X POST https://www.naver.com/
curl -o sitefile.html https://www.naver.com/
curl --verbose -I https://www.naver.com/