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 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
<code>curl --header or  [[curl -H]]</code>
+
curl --header or  [[curl -H]]
 
 
 
 
  -H "[[Authorization: Bearer]] ..."
 
  
 
== Examples ==
 
== Examples ==
Line 10: Line 7:
 
  curl --header "[[PRIVATE-TOKEN]]: <your_access_token>" https://gitlab.example.com/api/v4/notification_settings
 
  curl --header "[[PRIVATE-TOKEN]]: <your_access_token>" https://gitlab.example.com/api/v4/notification_settings
  
[[curl -H]] "project_id: mainnetAFDASF34534534r3f" https://[[cardano-mainnet.blockfrost.io]]/api/v0[[/pools/]]pool234324234234234234234234/history
 
  
 
  [[curl -H]] "[[Content-Type]]: [[application/json]]"  [[--request]] [[POST]] [[--data]] '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
 
  [[curl -H]] "[[Content-Type]]: [[application/json]]"  [[--request]] [[POST]] [[--data]] '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
  
 
  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
 
 
[[curl $APISERVER/api]] --header "[[Authorization:]] Bearer $TOKEN" --insecure
 
  
 
== Related ==
 
== Related ==
 
* <code>[[curl -d]]</code>
 
* <code>[[curl -d]]</code>
 
* [[HTTP headers]]
 
* [[HTTP headers]]
* [[Display HTTP response headers]]: <code>[[curl -v]]</code>
+
* [[Display HTTP response headers]]
* [[curl: no URL specified!]]
 
* [[Access Kubernetes REST API using default token]]
 
* [[8551]]
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: