cloudhead / http-console

simple, intuitive HTTP REPL — Speak HTTP like a local.
Apache License 2.0
1.35k stars 65 forks source link

.q and .header = unknown command #21

Closed NHQ closed 8 years ago

NHQ commented 13 years ago

This happened with most latest release, running on OSX 10.6, node v. 0.2.6

"unknown command" returned for .q and .header. Thus .q didn't quit.

Also, is it possible to send data with a GET request?

cloudhead commented 13 years ago

Ah, the latest http-console (which the docs refer to) is only compatible with node 0.3.6+, so npm probably installed an earlier version, which responds to \q and \headers type commands instead.

The only way to send data via a GET is through the URL:

> GET /foo?bar=123&baz=444

Also, make sure you pluralize the headers command.