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
f02169ea71
Added Python 2.6 compatible OrderedDict
...
To preserver ordr of headers, parameters, etc.
2014-04-24 19:57:19 +02:00
Jakub Roztocil
e5d758e4ce
More tests.
2014-04-24 19:32:55 +02:00
Matthias Lehmann
d4363a560d
rename existing_file to readable_file_arg and move to input
2014-01-29 18:02:06 +01:00
Jakub Roztocil
52dd6adaa3
Updated README.
2014-01-25 15:04:15 +01:00
Jakub Roztocil
1aa77017d5
Catch UnicodeDecodeError when embedding file via =@ or :=@.
2014-01-25 14:57:19 +01:00
Nathan LaFreniere
8a52bef559
make shorthand parsing more robust, add unit tests and documentation
2013-10-09 11:32:41 -07:00
Nathan LaFreniere
711168a899
allow :port style shorthand
2013-10-08 22:41:38 -07:00
Jakub Roztocil
2e535d8345
Fixed password prompt.
2013-09-25 00:17:50 +02:00
Jakub Roztocil
0bcd4d2fb0
Fixed a bytes/str issue for Python 3.
2013-09-25 00:00:17 +02:00
Jakub Roztocil
d5bc564e4f
Allow embeding text (=@) and JSON (:=@) files content into request data fields.
2013-09-24 23:41:18 +02:00
Jakub Roztocil
2acb303552
Added support for auth plugins.
2013-09-21 23:46:15 +02:00
Jakub Roztocil
f7b703b4bf
Added --ignore-stdin
...
Closes #150
2013-08-23 10:57:17 +02:00
Jakub Roztocil
67496162fa
Improved --help output.
2013-08-10 11:56:19 +02:00
Jakub Roztocil
87c59ae561
Added anonymous sessions (--session=/file/path.json).
2013-05-13 14:47:44 +02:00
Jakub Roztocil
bc756cb6a2
Cleanup
2013-04-27 11:57:13 -03:00
Jakub Roztocil
1b98505537
Validate download options before setting up streams.
2013-04-12 11:59:23 -03:00
Jakub Roztocil
341272db1e
Added support for output redirection with --download ( #104 ).
2013-04-12 11:04:14 -03:00
Jakub Roztocil
8e6c765be2
Initial --download implementation ( #104 ).
...
Closes #127
2013-03-03 22:17:09 -03:00
Jakub Roztocil
093dab5896
Multiple headers TODO.
2013-02-22 13:18:18 +01:00
Jakub Roztocil
1481749c22
Use urlsplit
instead of urlparse
.
...
Closes #118 .
2013-01-03 14:12:27 +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
d87b2aa0e5
Added support for credentials in URL.
...
Closes #100 🍰
2012-11-08 22:29:54 +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
a41dd7ac6d
Allow output redirection on Windows.
...
Closes #88 .
2012-09-21 04:30:59 +02:00
Jakub Roztocil
4a6f32a0f4
Documented config.
...
Also renamed `default_content_type` to `implicit_content_type` .
2012-09-17 03:08:45 +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
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
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
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
4e58a3849a
Added exit status constants, cleaned up main().
2012-08-04 19:22:50 +02:00
Jakub Roztocil
94c77c9bfc
Improved password prompt.
2012-08-04 17:04:36 +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
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
6eed0d92eb
Better error messages.
2012-07-29 07:14:54 +02:00
Jakub Roztocil
f73bfea6b8
Validate "file fields (name@/path) require --form / -f".
2012-07-29 06:58:50 +02:00
Jakub Roztocil
f5bc081fda
Send filenames with multipart/form-data file uploads.
2012-07-28 13:24:44 +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