Timeline for How to send a header using a HTTP request through a cURL call?
Current License: CC BY-SA 4.0
21 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 4 at 22:09 | history | edited | Pat Myron | CC BY-SA 4.0 | removing extraneous text + formatting |
| Oct 17, 2022 at 9:31 | history | edited | Alserda | CC BY-SA 4.0 | Corrected "Mutliple" to "Multiple" |
| Jun 28, 2022 at 8:37 | history | edited | Tader | CC BY-SA 4.0 | titlecase, example 2 fix header key/value |
| Jun 27, 2022 at 6:15 | history | edited | Patrick Collins | CC BY-SA 4.0 | added 130 characters in body |
| Dec 9, 2021 at 20:53 | comment | added | Dabbler | For whatever reason, this works for me only if I remove the space after the colon. | |
| Dec 13, 2017 at 16:41 | comment | added | user3853034 | @MartinKonicek and others: I HIGHLY recommend the tldr utiltiy (brew, etc install tldr). Its only examples. eg "- Send a request with an extra header, using a custom HTTP method: curl -H 'X-My-Header: 123' -X PUT example.com" | |
| Dec 11, 2017 at 12:02 | history | edited | Daniel Stenberg | CC BY-SA 3.0 | better man page link |
| Jun 18, 2017 at 19:45 | history | edited | Andrew | CC BY-SA 3.0 | added 2 characters in body |
| Apr 6, 2017 at 13:51 | comment | added | JESii | man pages (on OSX, at least) now DO include an example: Example: # curl -H "X-First-Name: Joe" 192.168.0.1 | |
| S Jan 9, 2017 at 4:56 | history | suggested | MD XF | CC BY-SA 3.0 | bad formatting |
| Jan 9, 2017 at 2:25 | review | Suggested edits | |||
| S Jan 9, 2017 at 4:56 | |||||
| Aug 15, 2016 at 10:57 | comment | added | Rachel K. Westmacott | If people want examples I'll just leave this here: bropages.org | |
| Sep 24, 2015 at 6:41 | comment | added | Hatoru Hansou | If you want to send multiple headers use more than one --header, it is ok, curl will parse each as a different header. There is no way to separate headers inside the same --header parameter. example: curl --header "Accept: javascript" --header "test: hello" -v www.google.com | |
| Nov 1, 2013 at 10:52 | review | Suggested edits | |||
| Nov 1, 2013 at 11:02 | |||||
| Jun 26, 2013 at 8:21 | history | edited | jpswain | CC BY-SA 3.0 | emphasized what people come here to find, for clarity |
| Mar 27, 2012 at 16:46 | history | edited | Tader | CC BY-SA 3.0 | Reverted answer ruined by Kristian |
| Mar 22, 2012 at 14:10 | history | edited | kba | CC BY-SA 3.0 | Formatting |
| S Mar 15, 2012 at 7:51 | history | suggested | Brandon Cuff | CC BY-SA 3.0 | Added an example |
| Mar 15, 2012 at 0:41 | review | Suggested edits | |||
| S Mar 15, 2012 at 7:51 | |||||
| Dec 22, 2008 at 18:34 | vote | accept | gagneet | ||
| Jan 6, 2020 at 0:40 | |||||
| Dec 10, 2008 at 16:41 | history | answered | Tader | CC BY-SA 2.5 |