Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > System > Shells

    HttpShell 0.8.0

    Download button

    Downloads: 97  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Longo | More programs
    MIT/X Consortium Lic... / FREE
    January 4th, 2012, 05:50 GMT
    ROOT / System / Shells

     Read user reviews (0)  Refer to a friend  Subscribe

    HttpShell description

    An interactive shell for issuing HTTP commands to a web server or REST API

    HttpShell is an interactive shell for issuing HTTP commands to a web server or REST API.

    Issue HTTP commands (HEAD, GET, POST, PUT, DELETE) to a server with visual feedback. Makes debugging REST services much more interactive than cURL.

    Usage

    Treats the server like a filesystem:

    $ httpsh http://api.twitter.com/a/statuses
    api.twitter.com:/1/statuses > get public_timeline.json


    HTTP/1.1 200 OK
    >content-length: 40945
    >vary: Accept-Encoding
    >x-transaction-mask: a6183ffa5f8ca943ff1b53b5644ef1140f40ebd7
    ...


    Use familiar shell commands:

    api.twitter.com:/1/statuses > cd ..
    api.twitter.com:/1/ > cd /
    api.twitter.com:/ >


    Pipe output to external commands for formatting, etc:

    api.twitter.com:/1/statuses > get public_timeline.xml | xmllint -format -
    ...
    < ?xml version="1.0" encoding="UTF-8"? >
    < statuses type="array" >
     < status >
     < created_at >Wed Dec 14 00:57:12 +0000 2011< /created_at >
    ...


    Post data to server:

    $ httpsh http://localhost:28017
    localhost:28017:/ > post /foo/bar
    ... { "a" : 123456 }
    ...
    HTTP/1.0 201
    >content-type: text/plain;charset=utf-8
    >connection: close
    >x-ns: foo._defaultCollection
    >content-length: 15
    >x-action: bar

    { "ok" : true }


    Use JSON to post to web forms using special "@{}" notation!

    somewebsite:/ > post /some/form/handler
    ... @{
    ... "name": "Chris",
    ... "occupation": "Developer"
    ... }


    Converts the JSON definition above to: name=Chris&occupation=Developer for form posting.

    Set headers:

    localhost:28017:/ > .headers Cookie:session=5cb9586618eea2374377bb1584f7de74
    localhost:28017:/ > .headers User-Agent:AppleWebKit/535.13
    localhost:28017:/ > .headers
    < Cookie: session=5cb9586618eea2374377bb1584f7de74
    < User-Agent: AppleWebKit/535.13


    Help

    Verbs
     head [< /path/to/resource >] [| < external command >]
     get [< /path/to/resource >]
     post [< /path/to/resource >] [data]
     put [< /path/to/resource >] [data]
     delete < /path/to/resource >
    Navigation
     cd < /path/to/resource > or ..
    Metacommands
     .headers [< name >]:[< value >]
     .quit


    Installation

     python setup.py install

    Or if pip is installed:

     pip install httpshell

    May require sudo to install!


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    interactive shell | HTTP commands | web server | HTTP | commands | shell



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM