Difference between revisions of "Curl --header"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
* <code>[[curl -d]]</code> | * <code>[[curl -d]]</code> | ||
* [[HTTP headers]] | * [[HTTP headers]] | ||
− | * [[Display HTTP response headers]] | + | * [[Display HTTP response headers]]: <code>[[curl -v]]</code> |
== See also == | == See also == |
Revision as of 06:41, 20 March 2023
curl --header or curl -H
Examples
curl --header 'X-JFrog-Art-Api: 1234567890' curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/notification_settings
curl -H "Content-Type: application/json" --request POST --data '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
curl \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ -H "Content-Type: application/json; charset=utf-8" \ https://analyticsadmin.googleapis.com/v1alpha/accounts
Related
See also
Advertising: