1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
Commit Graph

1593 Commits

Author SHA1 Message Date
Jakub Roztocil
ab23037582 Python 3 fixes. 2012-03-15 00:28:15 +01:00
Jakub Roztocil
3dbb61a8ca Added argparse for Python 3.1. 2012-03-15 00:22:29 +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
e2e749b2a6 Improved request formatting. 2012-03-14 22:45:35 +01:00
Jakub Roztocil
ccbea8c96e Assume "/" as the Request-URI for printing when none present. 2012-03-14 19:30:12 +01:00
Jakub Roztocil
6a1f0248e1 Fixed tests. 2012-03-14 19:21:47 +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
578acacdf3 Added a --verbose / -v flag
When set, the whole request as well as the response is printed. Shortcut for --print=HBhb.
2012-03-14 11:15:21 +01:00
Jakub Roztocil
ed888a2657 Made sure request Host is correct when printing. 2012-03-14 01:12:10 +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
31c28807c9 Added better JSON highlighting
A JSON-specific lexer for Pygments by Norman Richards (@orb)
has been added. It attempts to provide more interesting syntax
highlighting which correctly distinguishes between attribute
names and values.

Closes #25.
2012-03-13 21:45:40 +01:00
Praful Mathur
78e20c6e85 Merge remote-tracking branch 'upstream/master' 2012-03-13 11:00:56 -04:00
Jakub Roztocil
20408e12e9 Added BSD license text
HTTPie is going to be packaged for Debian and this will make it easier. The license and © is still the same as before.
2012-03-13 10:59:29 -04:00
Jakub Roztocil
3c8af4c170 Added BSD license text
HTTPie is going to be packaged for Debian and this will make it easier. The license and © is still the same as before.
2012-03-09 14:20:26 +01:00
Praful Mathur
c9eb2255f6 Added proper JSON highlighting 2012-03-05 12:58:21 -05:00
Jakub Roztocil
028d16d0ff Merge pull request #24 from faulkner/fix-packaging
Update references to moved README.
Closes #23, #24.
2012-03-05 00:04:53 -08:00
Chris Faulkner
f5d4addab2 Update references to moved README. 2012-03-04 22:26:23 -08: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
Jakub Roztocil
ce952c9e90 Added support for more 256 color terminals.
Closes #20. Thanks, @laurentb.
2012-03-04 16:40:02 +01:00
Jakub Roztocil
e83e601f7c Added a link to contributors on GitHub to README. 2012-03-04 16:39:57 +01:00
Jakub Roztocil
f995c61892 Merge pull request #21 from laurentb/packaging
Packaging fixes
2012-03-04 07:35:24 -08:00
Laurent Bachelier
71771dc4a6 One argument per line 2012-03-04 16:28:30 +01:00
Laurent Bachelier
1517f3d149 Include README.md in the source tarball
This should fix the IOError that occured in setup.py.
2012-03-04 16:28:30 +01:00
Jakub Roztocil
d9abf7d31c Updated screenshot. 2012-03-04 15:37:04 +01:00
Jakub Roztočil
c446d756ab Fixed IOError in setup.py. 2012-03-04 13:47:09 +01:00
Jakub Roztočil
7ca6191902 v0.1.5 2012-03-04 13:33:18 +01:00
Jakub Roztočil
ebb271334b Corrected line breaks in the output. 2012-03-04 13:03:21 +01:00
Jakub Roztočil
bd9209f77a Fixed --pretty tests. 2012-03-04 12:23:11 +01:00
Jakub Roztočil
7d629b4d94 Fixed tests II. 2012-03-04 12:02:30 +01:00
Jakub Roztočil
a44ef6c443 Fixed tests. 2012-03-04 11:58:23 +01:00
Jakub Roztočil
f4dde9d9b3 Updated travis config. 2012-03-04 11:54:27 +01:00
Jakub Roztočil
6d14097844 Added travis-ci configuration. 2012-03-04 11:31:37 +01:00
Jakub Roztočil
8a4f501706 Fixed tests for Python 2.6. 2012-03-04 11:22:21 +01:00
Jakub Roztočil
6774998012 Updated README. 2012-03-04 11:22:09 +01:00
Jakub Roztočil
2195280a70 Added argument parsing tests. 2012-03-04 10:50:23 +01:00
Jakub Roztočil
f5d5ec22af Added --version. 2012-03-04 10:49:37 +01:00
Jakub Roztočil
b728710760 Factored out CLI parsing. 2012-03-04 10:49:17 +01:00
Jakub Roztočil
715e1b1047 Improved setup.py 2012-03-04 03:36:17 +01:00
Jakub Roztočil
ca8779d879 Merge branch 'main-module-convention' of https://github.com/gandaro/httpie into gandaro-main-module-convention
Renamed httpie.httpie to httpie.__main__ so that one can invoke it via python -m httpie.
2012-03-04 03:13:50 +01:00
Jakub Roztočil
5ff43b659f Fixed README. 2012-03-04 02:48:31 +01:00
Jakub Roztočil
b802f2b960 Added field-name:=raw-json
Closes #14
2012-03-04 02:44:30 +01:00
Jakub Roztočil
73d0f9cd56 Updated readme (--flags). 2012-03-04 01:59:00 +01:00
Jakub Roztočil
00312ead28 Refactored --pretty and added tests.
#16
2012-03-04 01:54:28 +01:00
Jakub Roztocil
d02ac54130 Merge pull request #16 from tictactix/master
Added a way to force pretty printing
2012-03-03 16:17:41 -08:00
Jakub Roztocil
81568cf91c Merge pull request #19 from faulkner/fix-readme
A few minor corrections to the README.
2012-03-03 15:37:02 -08:00
Jakub Roztocil
6df9ff67eb Merge pull request #17 from faulkner/fix-redirects
Pass allow_redirects to request so --allow-redirects works.
2012-03-03 15:36:43 -08:00
Chris Faulkner
5d3176115a Correct usage string in README. 2012-03-03 14:12:49 -08:00