Skip to content

Instantly share code, notes, and snippets.

@hardillb
Created March 6, 2013 16:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardillb/5100426 to your computer and use it in GitHub Desktop.
Save hardillb/5100426 to your computer and use it in GitHub Desktop.
Quick script to look up http status codes on their wikipedia page ./httprc 200
#!/bin/sh
links http://en.wikipedia.org/wiki/HTTP_code#$1
@andypiper
Copy link

this requires links and also throws the user into the browser. It's a neat lightweight solution but might benefit from short/long code descriptions, maybe using curl and local parsing to pull out information, with an option to go to the full website (or even the IETF spec).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment