header="Host:host.domain.xyz"
Frame 3: 213 bytes on wire (1704 bits), 213 bytes captured (1704 bits) Ethernet II, Src: Vmware_88:6e:cb (00:50:56:88:6e:cb), Dst: Vmware_88:2d:d9 (00:50:56:88:2d:d9) Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.100 Transmission Control Protocol, Src Port: 12348, Dst Port: 80, Seq: 1, Ack: 1, Len: 159 Hypertext Transfer Protocol GET / HTTP/1.0\r\n User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)\r\n Connection: close\r\n Accept: */*\r\n Host:host.domain.xyz\r\n X-Forwarded-Proto:https\r\n \r\n [Full request URI: http://host.domain.xyz/] [HTTP request 1/1]
Frame 3: 183 bytes on wire (1464 bits), 183 bytes captured (1464 bits) Ethernet II, Src: Vmware_88:b6:33 (00:50:56:88:b6:33), Dst: Vmware_88:99:83 (00:50:56:88:99:83) Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.100 Transmission Control Protocol, Src Port: 21920, Dst Port: 80, Seq: 1, Ack: 1, Len: 129 Hypertext Transfer Protocol GET / HTTP/1.0\r\n User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)\r\n Connection: close\r\n Accept: */*\r\n X-Forwarded-Proto:https\r\n \r\n [HTTP request 1/1]
header=Host:host.domain.xyz
header=Host:host.domain.xyz -H host.domain.xyz
You should now see that the host header is correctly included in the request.
Frame 3: 214 bytes on wire (1712 bits), 214 bytes captured (1712 bits) Ethernet II, Src: Vmware_88:b6:33 (00:50:56:88:b6:33), Dst: Vmware_88:99:83 (00:50:56:88:99:83) Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.100 Transmission Control Protocol, Src Port: 21982, Dst Port: 80, Seq: 1, Ack: 1, Len: 160 Hypertext Transfer Protocol GET / HTTP/1.1\r\n User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)\r\n Connection: close\r\n Host: host.domain.xyz\r\n Accept: */*\r\n X-Forwarded-Proto:https\r\n \r\n [Full request URI: http://host.domain.xyz/] [HTTP request 1/1]