Commit Graph

50 Commits

Author SHA1 Message Date
Jakub Roztocil
9391c89205 Fixed RST formatting. 2012-07-24 17:22:04 +02:00
Jakub Roztocil
76ebe7c6db Short option for --headers is now -h.
-t has been removed, for usage use --help
2012-07-24 17:17:26 +02:00
Jakub Roztocil
7af08b6faa Allow multiple fields with the same name.
Applies to form data and URL params:

    http -f url a=1 a=2
    http url a==1 a==2
2012-07-24 17:00:02 +02:00
Jakub Roztocil
9944def703 Switched to "==" a the separator for URL params.
Also refactored item escaping.
2012-07-24 14:56:53 +02:00
Jakub Roztocil
728a1a195b Updated changelog. 2012-07-24 01:17:07 +02:00
Jakub Roztocil
2646ebaaed Replaced --ignore-http-status with --check-status.
The default behaviour now is to exit with 0 on HTTP errors
unless --check-status is set.
2012-07-24 01:09:14 +02:00
Jakub Roztocil
0572158ba1 Added exit codes for HTTP 3xx, 4xx, 5xx (3, 4, 5).
Also added `--ignore-http-status` to ensure 0 exit status.

HTTP 3xx result in 0 exit status when `--allow-redirects` is set.
2012-07-23 19:40:50 +02:00
Jakub Roztocil
19f760450f Use local httpbin for all tests if available. 2012-07-21 14:37:05 +02:00
Jakub Roztocil
c271715a98 Updated flags in README. 2012-07-20 23:51:05 +02:00
Jakub Roztocil
57fc606f6b Changed default --print to "b" if stdout piped.
If the output is piped to another program or redirected to a file,
the new default behaviour is to only print the response body.
(It can still be overriden via the ``--print`` flag.)
2012-07-20 23:43:04 +02:00
Jakub Roztocil
7d82b853ae Updated installation instructions. 2012-07-20 22:09:53 +02:00
Jakub Roztocil
16f23d8147 Improved highlighting of HTTP headers.
Closes #60.
2012-07-20 21:58:41 +02:00
Jakub Roztocil
ab7915d9e0 Updated changelog; added stable version README link. 2012-07-19 13:31:02 +03:00
Jake Basile
76a3125153 Updated documentation for query string params. 2012-07-18 21:16:33 -05:00
Jakub Roztocil
c2d70e2bb1 Clean up. 2012-07-17 07:01:30 +02:00
Jakub Roztocil
40948dbd2e Updated changelog. 2012-07-17 04:20:37 +02:00
Jakub Roztocil
54e3e5bca4 README fixes. 2012-07-17 01:55:12 +02:00
Jakub Roztocil
533a662651 0.2.6dev 2012-07-17 01:39:30 +02:00
Jakub Roztocil
1ce02ebbd5 0.2.5 (bugfixes) 2012-07-17 01:39:02 +02:00
Jakub Roztocil
0cffda86f6 0.2.5dev 2012-07-17 00:47:42 +02:00
Jakub Roztocil
f42ee6da85 0.2.5dev 2012-07-17 00:45:20 +02:00
Jakub Roztocil
deeb7cbbac 0.2.4 (bad upload of 0.2.3 to pypi). 2012-07-17 00:44:25 +02:00
Jakub Roztocil
489bd64295 0.2.4dev 2012-07-17 00:37:53 +02:00
Jakub Roztocil
9b8cb42efd 0.2.3 2012-07-17 00:37:13 +02:00
Jakub Roztocil
5ca8bec9ff Add a note on pretty JSON and unicode to changelog
Closes #52
Closes #67
2012-07-17 00:22:39 +02:00
Jakub Roztocil
05b321d38f Better wording. 2012-07-17 00:06:13 +02:00
Jakub Roztocil
681b652bf9 Allow stdin data with password prompt; added tests
Closes #70
2012-07-16 23:41:27 +02:00
Ismail Badawi
85b3a016eb Update README with new --auth behavior. 2012-07-16 04:50:25 -04:00
Simon Olofsson
c71de95505 Update README.rst and add links to Ubuntu and Debian Packages. 2012-07-11 16:32:00 +03:00
Jakub Roztocil
50196be0f2 Added support for request payload from a filepath
Content-Type is detected from the filename.

Closes #57.
2012-06-29 00:45:31 +02:00
Jakub Roztocil
41d640920c Added more examples. 2012-06-25 14:50:49 +02:00
Jakub Roztocil
3179631603 0.2.3dev 2012-06-24 16:45:01 +02:00
Jakub Roztocil
2f7921091c 0.2.2 2012-06-24 16:43:03 +02:00
Jakub Roztocil
926d3f5caf Tests, docs, clean-up.
Closes #54.
2012-06-24 03:45:21 +02:00
Vladimir Berkutov
d920f20847 Issue #54 Method suggestion proposal 2012-06-17 22:11:26 +04:00
Vladimir Berkutov
bca36f0464 Issue #54 Method suggestion proposal 2012-06-17 21:46:56 +04:00
Jakub Roztocil
e06c448a75 README improvements. 2012-06-15 17:32:45 +02:00
Jakub Roztocil
9cdbd6b0ec Added a Contribute section to README. 2012-06-15 17:13:40 +02:00
Jakub Roztocil
a0700c41ad 0.2.1 2012-06-13 16:01:23 +02:00
Jakub Roztocil
b8cc7c205c Updated README. 2012-04-25 02:13:39 +02:00
Jakub Roztocil
7910269996 Updated README and docs. 2012-04-25 02:10:58 +02:00
Jakub Roztocil
c6c1489212 Refactored @mmb's fix to --verify; updated docs.
Closes #32.
2012-04-11 12:46:08 +02:00
Jakub Roztocil
ab23037582 Python 3 fixes. 2012-03-15 00:28:15 +01:00
Jakub Roztocil
51aa0409e6 Added Python 3 support
Closes #11.
2012-03-15 00:13:11 +01:00
Jakub Roztocil
1f49900db6 Improved README. 2012-03-14 22:55:09 +01:00
Jakub Roztocil
b7e0473d6c Added file upload support
It is now possible to send multipart/form-data requests.

Note that the --file option used previously has been removed
because it didn't allow you specify the field name.

Example:

    http -f POST example.com field-name@/path/to/file
2012-03-14 19:14:37 +01:00
Jakub Roztocil
5e19e1b95d Added a "New in development version" link. 2012-03-14 00:58:05 +01:00
Jakub Roztocil
02622a4135 Added the option to print the request
It is now possible to print any combination of the following
request-response bits:

    - Request headers (H)
    - Request body (B)
    - Response headers (h)
    - Response body (b)

The output is controlled by the --print / -p option which
defaults to "hb" (i.e., response headers and response body).

Note that -p was previously shortcut for --prety.

Closes #29.
2012-03-14 00:44:13 +01:00
Jakub Roztocil
ccb2aaf94f Update README.rst 2012-03-05 02:54:34 +01:00
Jakub Roztocil
8cff0a3e67 Updated README. 2012-03-05 00:48:06 +01:00