Closed jakdept closed 3 years ago
You should be able to do httpstat -H "Host: blah.com" https://1.2.3.4/
@jakdept do you want to try that. The alternative may be adding something like curl’s —resolve flag
I did not think of manually setting a Host:
header at command line, but that does work when I tried it.
Further, digging through net/http
and crypto/tls
they look to check for a Host:
header if other methods for setting the server name are not there before connecting, so that seems like it should work in all cases.
The alternative may be adding something like curl’s —resolve flag
See our previous discussion in #36
It'd be nice to be able to shoot httpstat at a specific IP address, instead of the DNS resolution target (thus overriding DNS resolution).
Is this something that already exists and I'm just missing it?