Jakub Roztocil
44e409693b
Set JSON Content-Type only with data even with -j.
2012-08-06 22:14:52 +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
e045ca6bd8
Cleanup, CHANGELOG
2012-08-01 23:51:30 +02:00
Jakub Roztocil
52e46bedda
Take advantage of streaming.
...
It's now possible to download huge files with HTTPie, and it's often faster than curl and wget!
2012-08-01 23:21:52 +02:00
Jakub Roztocil
67ad5980b2
Don't fetch the response body unless needed.
...
E.g., this will only read the response headers but won't download the
whole file:
http GET --headers example.org/big-file.avi
The request method is respected (i.e., it doesn't switch to HEAD like
cURL does).
2012-08-01 21:31:06 +02:00
Jakub Roztocil
90d34ffd0d
Added tests for binary request data.
2012-08-01 00:52:30 +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
f73bfea6b8
Validate "file fields (name@/path) require --form / -f".
2012-07-29 06:58:50 +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
a8ddb8301d
Default to https:// if invoked as `https'.
2012-07-27 18:08:33 +02:00
Jakub Roztocil
f45cc0eec0
Added docstrings, refactored input.
2012-07-26 07:23:00 +02:00
Jakub Roztocil
26a76e8243
Clean-up
2012-07-26 00:50:39 +02:00
Jakub Roztocil
f5cfd0143b
Ensure that full querystring is printent with -v.
...
The `key==value` parameters weren't included in the Request-Line URL.
Also added tests.
2012-07-25 14:32:57 +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
0a673613ef
Fixed colorama initialization ( #36 ).
2012-07-21 15:08:28 +02:00
Jakub Roztocil
87042f65c9
Added models.Environment()
.
...
Refactoring and general cleanup.
2012-07-21 03:14:01 +02:00