Answers for "curl get status"

PHP
18

curl post json

curl -X POST -H "Content-Type: application/json" \
 -d '{"username":"abc","password":"abc"}' \
 https://api.example.com/v2/login
Posted by: Guest on July-03-2020
4

curl get example

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Posted by: Guest on July-01-2020
1

curl detailed response

curl -i google.de
Posted by: Guest on August-27-2021
1

get status code of curl

curl -o /dev/null -s -w "%{http_code}\n" http://localhost
Posted by: Guest on January-15-2021
1

curl get return code

curl -I http://www.example.org
Posted by: Guest on March-18-2021

Browse Popular Code Answers by Language