Jakub Roztocil
9ec328ff6f
Session commands.
2012-12-11 12:54:34 +01:00
Jakub Roztocil
8175366f27
PEP8
2012-12-05 04:39:56 +01:00
Jakub Roztocil
acf5f063c7
Typo
2012-12-01 16:52:23 +01:00
Jakub Roztocil
5d969852c7
Added --no-option's and made args more config-friendly.
2012-09-24 06:49:12 +02:00
Jakub Roztocil
e25d64a610
0.3.0
2012-09-21 05:50:01 +02:00
Jakub Roztocil
548bef7dff
Added tests for sessions.
2012-09-17 02:15:00 +02:00
Jakub Roztocil
478d654945
Renamed --session-read to --session-read-only.
2012-09-17 00:01:49 +02:00
Jakub Roztocil
316e3f45a9
Added --session-read
for read-only sessions.
2012-09-07 12:38:52 +02:00
Jakub Roztocil
da0eb7db79
Renamed --allow-redirects to --follow.
2012-09-07 11:58:39 +02:00
Jakub Roztocil
9338aadd75
Cleanup
2012-09-05 20:22:08 +02:00
Jakub Roztocil
47de4e2c9c
Sessions are now host-bound.
2012-08-19 04:58:14 +02:00
Jakub Roztocil
8a9cedb16e
JSON session data, `httpie' management command.
2012-08-18 23:07:36 +02:00
Jakub Roztocil
ff9f23da5b
Grouped arguments for a more user-friendly --help.
2012-08-18 06:12:44 +02:00
Jakub Roztocil
50810e5bd9
Include data directory location with --debug.
2012-08-18 04:45:29 +02:00
Jakub Roztocil
0b3bad9c81
Added initial support for persistent sessions.
2012-08-17 23:23:02 +02:00
Jakub Roztocil
bf03937f06
Unified output processing options under --pretty.
...
* --pretty=none instead of --ugly
* --pretty=all instead of --pretty
* --pretty=colors instead of --colors
* --pretty=format instead of --format
2012-08-17 21:15:37 +02:00
Jakub Roztocil
c01dd8d64a
Added exit status for timed-out requests.
2012-08-09 05:24:58 +02:00
Jakub Roztocil
22a10aec4a
Added --colors and --format.
...
Closes #59 and #82 .
2012-08-07 16:59:49 +02:00
Jakub Roztocil
1fbe7a6121
Improved --debug.
2012-08-07 14:50:51 +02:00
Jakub Roztocil
c7657e3c4b
Streamed terminal output
...
`--stream` can be used to enable streaming also with `--pretty` and to ensure
a more frequent output flushing.
2012-08-04 16:35:31 +02:00
Jakub Roztocil
923a8b71bd
Revorked output
...
Binary now works everywhere. Also added `--output FILE` for Windows.
2012-07-30 10:58:16 +02:00
Jakub Roztocil
098e1d3100
Fixed multipart requests output; binary support.
...
* Bodies of multipart requests are correctly printed (closes #30 ).
* Binary requests and responses should always work (they are also suppressed
for terminal output). So things like this work::
http www.google.com/favicon.ico > favicon.ico
2012-07-28 05:50:12 +02:00
Jakub Roztocil
f45cc0eec0
Added docstrings, refactored input.
2012-07-26 07:23:00 +02:00
Jakub Roztocil
851412c698
Improved error messages.
2012-07-26 03:16:42 +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
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
87042f65c9
Added models.Environment()
.
...
Refactoring and general cleanup.
2012-07-21 03:14:01 +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
Jake Basile
76a3125153
Updated documentation for query string params.
2012-07-18 21:16:33 -05:00
Jake Basile
06ea36aaa4
Added the ability to pass query string parameters.
2012-07-18 20:44:09 -05:00
Jakub Roztocil
c2d70e2bb1
Clean up.
2012-07-17 07:01:30 +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
929ead437a
Have --auth prompt for password if omitted.
2012-07-16 04:40:36 -04: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
926d3f5caf
Tests, docs, clean-up.
...
Closes #54 .
2012-06-24 03:45:21 +02:00
Jakub Roztocil
4613d947a8
Default to POST also when stdin redirected.
...
+clean up
2012-06-24 01:25:30 +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
Vladimir Berkutov
78fff98712
Issue #54 Method suggestion proposal
2012-06-16 20:08:31 +04:00
Jakub Roztocil
7910269996
Updated README and docs.
2012-04-25 02:10:58 +02:00
Jakub Roztocil
c5b1aaaa28
Major clean-up and refactoring.
2012-04-25 01:32:53 +02:00
Jakub Roztocil
67d6426360
Fixed several unicode-related issues
...
Closes #31 Python 3 & non-ascii arguments => UnicodeEncodeError
Closes #41 Unicode response error.
Closes #42 UnicodeEncodeError when piping Unicode output
2012-04-25 00:08:40 +02:00
Jake Basile
90af1f7422
Fixed escaping for long separators.
2012-04-18 18:18:00 -05:00
Jake Basile
16df8848e8
Removed accidentally included old funky code.
2012-04-16 20:47:13 -05:00
Jake Basile
c29981c633
Added ability to escape parameters... except for the := ones.
2012-04-16 20:28:08 -05:00
Jakub Roztocil
0c4c6c4753
Added --auth-type and tests for basic/digest auth.
...
Closes #38 .
2012-04-11 13:56:25 +02:00