wget -S is cool as I did not know about that option in wget. It does however annoyingly stick a index.html in your current path.
I have this in my .zshrc.
function http_headers {
curl=’whence curl’
curl -I -L $@
}
Which will do basically the same thing with curl minus cluttering up my path. Keep in mind whence won’t work in bash, you’ll need to replace it with which or whatever bash offers for a speeder internal command.
[...] http://almosteffortless.com/2008/10/21/stupid-linux-tricks-debug-your-website-like-a-sysadmin/ : comment débugger son site web comme un admin-sys. [...]
wget -S is cool as I did not know about that option in wget. It does however annoyingly stick a index.html in your current path.
I have this in my .zshrc.
function http_headers {
curl=’whence curl’
curl -I -L $@
}
Which will do basically the same thing with curl minus cluttering up my path. Keep in mind whence won’t work in bash, you’ll need to replace it with which or whatever bash offers for a speeder internal command.
… or you could use curl instead of wget and telnet
For the sourcecode:
curl almosteffortless.com
For the headers:
curl -I almosteffortless.com
For everything else:
curl –help
;-)
[...] http://almosteffortless.com/2008/10/21/stupid-linux-tricks-debug-your-website-like-a-sysadmin/ : comment débugger son site web comme un admin-sys. [...]