소스 검색

curl: add --header example

James Carlos 9 년 전
부모
커밋
b38813ca3f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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}}`