Jakub Roztocil
b3d2c1876e
Python 2.7 support removal WIP
2019-08-29 08:53:56 +02:00
Jakub Roztocil
f6824f7ade
Cleanup
2016-03-02 02:53:23 +08:00
Jakub Roztocil
3ff03524ff
HTTP/2 has no minor versions.
...
https://github.com/jakubroztocil/httpie-http2/issues/1
2015-02-07 16:31:42 +01:00
Jakub Roztocil
9682f955b5
Handle HTTP/2 responses
...
https://github.com/jakubroztocil/httpie-http2/issues/1#issuecomment-73301801
2015-02-06 21:13:57 +01:00
Jakub Roztocil
2a72ae23d5
Run tests against local httpbin instance via pytest-httpbin.
2014-06-28 16:38:41 +02:00
Jakub Roztocil
040d981f00
Fixed custom Host
...
Closes #235
2014-06-28 13:24:14 +02:00
Jakub Roztocil
e4c68063b9
Converted built-in formatters to formatter plugins.
...
Still work in progress and the API should be considered private for now.
2014-05-12 19:12:39 +02:00
Jakub Roztocil
0e6875bf83
Handle HTTP 0.9 in response when formatting version.
...
Closes #170
2014-04-28 00:08:20 +02:00
Jakub Roztocil
05db75bdb1
Modularized output, refactoring
...
Making it ready for output formatting plugin API.
2014-04-27 21:58:00 +02:00
Jakub Roztocil
43bc6d0c98
Fixed and added tests for --verbose with unicode headers.
2014-04-26 20:10:15 +02:00
Jakub Roztocil
467d126b6c
Python 3 unicode fixes.
2014-04-26 17:35:26 +02:00
Jakub Roztocil
56d33a8e51
Fix Windows branch.
2014-04-26 15:10:39 +02:00
Jakub Roztocil
15e62ad26d
Implemented more robust unicode handling.
...
* Immediatelly convert all args from `bytes` to `str`.
* Added `Environment.stdin_encoding` and `Environment.stdout_encoding`
* Allow unicode characters in HTTP headers and basic auth credentials
by encoding them using UTF8 instead of latin1 (#212 ).
2014-04-26 15:07:31 +02:00
Jakub Roztocil
b10d973019
Removed unused import.
2014-04-25 12:53:02 +02:00
Jason Dusek
5a037b2e13
Expunge user:pass@... from Host header.
...
In verbose mode, the basic auth user and password would show up in colored
output reporting the Host header, as reported in
https://github.com/jkbr/httpie/issues/169
2014-01-06 19:12:33 +00:00
Jakub Roztocil
2a6514eb5d
Update to requests 2.0.0
...
Closes #140 .
2013-09-24 21:49:43 +02:00
Jakub Roztocil
00de49f4c3
Cleanup
2013-08-18 00:59:10 +02:00
Jakub Roztocil
fc4f70a900
Colorize stderr on Windows.
2013-04-12 17:15:21 -03:00
Jakub Roztocil
289e9b844e
Fixed Content-Type retrieval for Python 3.
2013-04-12 14:07:21 -03:00
Jakub Roztocil
8e6c765be2
Initial --download implementation ( #104 ).
...
Closes #127
2013-03-03 22:17:09 -03:00
Jakub Roztocil
79c412064a
Python 3.3 fixes.
2013-01-03 15:19:21 +01:00
Jakub Roztocil
0ae9d7af58
Compatibility with requests v1.0.4 (requests URL params).
2013-01-03 14:42:17 +01:00
Jakub Roztocil
1481749c22
Use urlsplit
instead of urlparse
.
...
Closes #118 .
2013-01-03 14:12:27 +01:00
Jakub Roztocil
e5edb66ae8
Requests v1.0: Fixed request body access.
2012-12-19 11:37:52 +01:00
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
4a24cd25b9
Clean up.
2012-12-01 15:20:14 +01:00
Jakub Roztocil
548bef7dff
Added tests for sessions.
2012-09-17 02:15:00 +02:00
Jakub Roztocil
4029dbf309
Added configuration file.
...
The "default_content_type" option can be set to "form".
Closes #91 .
2012-09-17 00:37:36 +02:00
Jakub Roztocil
9338aadd75
Cleanup
2012-09-05 20:22:08 +02:00
Jakub Roztocil
4660da949f
Fixed colorized output on Windows with Python 3.
...
Closes #87 .
2012-08-17 06:35:18 +02:00
Jakub Roztocil
68640a81b3
Use CRLF for headers in the output.
2012-08-10 01:45:07 +02:00
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