Hacker News new | ask | show | jobs
by UI_at_80x24 330 days ago
Want the HTTP status code for a server?

```alias hstat="curl -Lo /dev/null --silent --head --write-out '%{http_code}\n'" $1 #HTTP status code```

example:

```$ hstat google.com 200```