How to send long http header requests with curl?
This is a memo for me.
$ HEADER="X-Header: X" $ for i in `seq 1 65535`;do HEADER="${HEADER}X";done $ curl -v -H "${HEADER}" http://www.test.local/
The parameter should be enclosed with double quote. Without enclosing double quote, curl can not send HTTP requests as expected.