{"id":13653093,"url":"https://github.com/cloudhead/http-console","last_synced_at":"2025-05-15T14:05:18.731Z","repository":{"id":927180,"uuid":"694225","full_name":"cloudhead/http-console","owner":"cloudhead","description":"simple, intuitive HTTP REPL — Speak HTTP like a local.","archived":false,"fork":false,"pushed_at":"2021-06-07T20:39:31.000Z","size":64,"stargazers_count":1351,"open_issues_count":14,"forks_count":65,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-15T03:49:05.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"JustinTulloss/zeromq.node","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudhead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-30T17:15:36.000Z","updated_at":"2025-03-23T17:40:26.000Z","dependencies_parsed_at":"2022-08-16T11:30:40.727Z","dependency_job_id":null,"html_url":"https://github.com/cloudhead/http-console","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhttp-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhttp-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhttp-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fhttp-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudhead","download_url":"https://codeload.github.com/cloudhead/http-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355334,"owners_count":22057354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:01:05.764Z","updated_at":"2025-05-15T14:05:13.723Z","avatar_url":"https://github.com/cloudhead.png","language":"JavaScript","funding_links":[],"categories":["Testing","JavaScript"],"sub_categories":["Querying"],"readme":"http-console\n============\n\n\u003e Speak HTTP like a local\n\nTalking to an HTTP server with `curl` can be fun, but most of the time it's a `PITA`.\n\n`http-console` is a simple and intuitive interface for speaking the HTTP protocol.\n\n*PS: HTTP has never been this much fun.*\n\nsynopsis\n--------\n\n![http-console](http://dl.dropbox.com/u/251849/http-console.png)\n\ninstallation\n------------\n\n*http-console* was written for [node](http://nodejs.org), so make sure you have that installed\nfirst. Then you need [npm](http://github.com/isaacs/npm), node's package manager.\n\nOnce you're all set, to install globally, run:\n\n    $ npm install http-console -g\n\nIt'll download the dependencies, and install the command-line tool in `/usr/local/bin` \n(you may need to make use of `sudo` or equivalent to gain access).\n\n### Installing the bleeding edge #\n\nThe latest release will often be available on npm as `http-console@latest`, so you can run:\n\n    $ npm install http-console@latest\n\nAlternatively, you can download a tarball of this repo, or clone it. Just make sure you have\nthe latest version of node.\n\nintroduction\n------------\n\nLet's assume we have a [CouchDB](http://couchdb.apache.org) instance running locally.\n\n### connecting #\n\nTo connect, we run `http-console`, passing it the server host and port as such:\n\n    $ http-console 127.0.0.1:5984 \n\n### navigating #\n\nOnce connected, we should see the *http prompt*:\n\n    http://127.0.0.1:5984/\u003e\n\nserver navigation is similar to directory navigation, except a little simpler:\n\n    http://127.0.0.1:5984/\u003e /logs\n    http://127.0.0.1:5984/logs\u003e /46\n    http://127.0.0.1:5984/logs/46\u003e ..\n    http://127.0.0.1:5984/logs\u003e ..\n    http://127.0.0.1:5984/\u003e\n\n### requesting #\n\nHTTP requests are issued with the HTTP verbs *GET*, *PUT*, *POST*, *HEAD* and *DELETE*, and\na relative path:\n\n    http://127.0.0.1:5984/\u003e GET /\n    HTTP/1.1 200 OK\n    Date: Mon, 31 May 2010 04:43:39 GMT\n    Content-Length: 41\n\n    {\n        couchdb: \"Welcome\",\n        version: \"0.11.0\"\n    }\n\n    http://127.0.0.1:5984/\u003e GET /bob\n    HTTP/1.1 404 Not Found\n    Date: Mon, 31 May 2010 04:45:32 GMT\n    Content-Length: 44\n\n    {\n        error: \"not_found\",\n        reason: \"no_db_file\"\n    }\n\nWhen issuing *POST* and *PUT* commands, we have the opportunity to send data too:\n\n    http://127.0.0.1:5984/\u003e /rabbits\n    http://127.0.0.1:5984/rabbits\u003e POST\n    ... {\"name\":\"Roger\"}\n\n    HTTP/1.1 201 Created\n    Location: http://127.0.0.1/rabbits/2fd9db055885e6982462a10e54003127\n    Date: Mon, 31 May 2010 05:09:15 GMT\n    Content-Length: 95\n\n    {\n        ok: true,\n        id: \"2fd9db055885e6982462a10e54003127\",\n        rev: \"1-0c3db91854f26486d1c3922f1a651d86\"\n    }\n\nMake sure you have your `Content-Type` header set properly, if the API requires it. More\nin the section below.\n\n\u003e Note that if you're trying to POST to a form handler, you'll most probably want to send data\nin `multipart/form-data` format, such as `name=roger\u0026hair=black`. http-console sends your POST/PUT data *as is*,\nso make sure you've got the format right, and the appropriate `Content-Type` header.\n\n### setting headers #\n\nSometimes, it's useful to set HTTP headers:\n\n    http://127.0.0.1:5984/\u003e Accept: application/json\n    http://127.0.0.1:5984/\u003e X-Lodge: black\n\nThese headers are sent with all requests in this session. To see all active headers,\nrun the `.headers` command:\n\n    http://127.0.0.1:5984/\u003e .headers\n    Accept: application/json\n    X-Lodge: black\n\nRemoving headers is just as easy:\n\n    http://127.0.0.1:5984/\u003e Accept:\n    http://127.0.0.1:5984/\u003e .headers\n    X-Lodge: black\n\nBecause JSON is such a common data format, http-console has a way to automatically set\nthe `Content-Type` header to `application/json`. Just pass the `--json` option when\nstarting http-console, or run the `.json` command:\n\n    $ http-console 127.0.0.1:5984 --json\n    http://127.0.0.1:5984/\u003e .headers\n    Accept: */*\n    Content-Type: application/json\n\n### cookies #\n\nYou can enable cookie tracking with the `--cookies` option flag.\nTo see what cookies are stored, use the `.cookies` command.\n\n### SSL #\n\nTo enable SSL, pass the `--ssl` flag, or specify the address with `https`.\n\n### quitting #\n\n    http://127.0.0.1:5984/\u003e .q\n\nnuff' said.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fhttp-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudhead%2Fhttp-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fhttp-console/lists"}