How to send a header using a HTTP request through a curl call?

后端 未结 10 1385
梦如初夏
梦如初夏 2020-11-22 16:45

I wish to send a header to my Apache server on a Linux box. How can I achieve this via a curl call?

10条回答
  •  醉梦人生
    2020-11-22 17:20

    In case you want send your custom headers, you can do it this way:

    curl -v -H @{'custom_header'='custom_header_value'} http://localhost:3000/action?result1=gh&result2=ghk
    

提交回复
热议问题