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

后端 未结 10 1388
梦如初夏
梦如初夏 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:24

    I've switched from curl to Httpie; the syntax looks like:

    http http://myurl HeaderName:value
    

提交回复
热议问题