Editing Curl --header
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
<code>curl --header or [[curl -H]]</code> | <code>curl --header or [[curl -H]]</code> | ||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
Line 15: | Line 12: | ||
curl \ | curl \ | ||
− | -H "[[Authorization: Bearer]] "$(gcloud auth application-default print-access-token) \ | + | -H "[[Authorization]]: [[Bearer]] "$(gcloud auth application-default print-access-token) \ |
-H "[[Content-Type]]: application/json; charset=utf-8" \ | -H "[[Content-Type]]: application/json; charset=utf-8" \ | ||
https://analyticsadmin.googleapis.com/v1alpha/accounts | https://analyticsadmin.googleapis.com/v1alpha/accounts | ||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
Line 28: | Line 22: | ||
* [[curl: no URL specified!]] | * [[curl: no URL specified!]] | ||
* [[Access Kubernetes REST API using default token]] | * [[Access Kubernetes REST API using default token]] | ||
− | |||
== See also == | == See also == |
Advertising: