Explorar o código

Merge branch 'curl-header' of git://github.com/jamescarlos/tldr into jamescarlos-curl-header

Igor Shubovych %!s(int64=9) %!d(string=hai) anos
pai
achega
4b9e574df8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pages/common/curl.md

+ 4 - 0
pages/common/curl.md

@@ -23,6 +23,10 @@
 
 `curl --head {{http://localhost}}`
 
+- Include an extra header:
+
+`curl --header "{{X-MyHeader: 123}}" {{http://localhost}}`
+
 - Pass a user name and password for server authentication:
 
 `curl -u myusername:mypassword {{http://localhost}}`