如何强制cURL发送无效的HTTP标头,如下所示:
curl -k 'https://192.168.1.1/' -H 'Host: 192.168.1.1' -H 'blah' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8'
当我尝试上述操作时,cURL有助于省略无效的标题.
curl http
curl ×1
http ×1