#Webshell: A console-based, JavaScripty #HTTP client utility
by Evan Haas and Sean Coates
►https://github.com/fictivekin/webshell#readme
Includes tab completion, history, context persistence, cookies and other tasty morsels.
Webshell supports all of the HTTP verbs in a simple to use syntax. The response’s #status code (and the requested URL) are printed. #Headers are expanded to local variables, and they can be inspected. Additionally, if the response suggests a redirect to another URL, the $.follow() function can be called for easy location following.
►http://localhost# GET ►http://google.com
HTTP 301 ►http://google.com
►http://google.com# $.headers
{ location: ’http://www.google.com/'
, ’content-type’: ’text/html; charset=UTF-8’
, date: ’Sat, 06 Nov 2010 17:38:56 GMT’
, expires: ’Mon, 06 Dec 2010 17:38:56 GMT’
, ’cache-control’: ’public, max-age=2592000’
, server: ’gws’
, ’content-length’: ’219’
, ’x-xss-protection’: ’1; mode=block’
, connection: ’close’
}
►http://google.com# $_.headers.location
’http://www.google.com/'