Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

curl for checking http headers simply with: curl -vskL http:1.2.3.4 -H "Host: example.com" > /dev/null


Why don't you just use the -I flag?


For some sites a HEAD may return different headers than GET, so it is safer to return the results in full. Also using vsk shows the request headers, including IP so you can easily see if things such as roundrobin DNS is in use, again to assist with debugging.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: