Force cURL send invalid HTTP header
1 answer
You can, but its a little more confusing than that. curl will check that you are using a colon and avoid hitting headers that do not have colons. But you can trick the colon dithering check by passing a header with an inline CRLF, which then creates two header lines, and one of them can be without a colon.
For example, for example:
curl -H "`printf "Foo: bar\r\nblah"`" -v localhost
(- v of course lets you see how the actual query is being used)
+3
source to share