Answers for "add headers in curl"

0

curl host header

curl --header "Host: example.com" http://127.0.0.1/
Posted by: Guest on October-26-2020
2

curl pass a header

curl -H "Accept-Charset: utf-8" -H "Content-Type: application/x-www-form-urlencoded" http://www.some-domain.com
Posted by: Guest on March-03-2020
0

curl cli add header

// use -H to add headers

curl -H "Accept-Encoding: identity" http://www.example.com
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language