Mickaël Schoentgen
a3a08a9a22
Use relative imports ( #1057 )
...
* Use relative imports in test
* Use relative imports
* Add myself to contributors :)
2021-05-05 14:13:39 +02:00
Jakub Roztocil
374c371ef1
Add httpie.status
2019-09-16 13:26:18 +02:00
Jakub Roztocil
0f654388fc
Python 3 annotations, super(), pathlib, etc.
2019-08-30 15:14:51 +02:00
Jakub Roztocil
9b23a4ac9a
Exit with status 130 on CTRL-C
...
http://www.tldp.org/LDP/abs/html/exitcodes.html
#531
2016-10-26 11:53:01 +02:00
Jakub Roztocil
48a6d234cb
Need a main()
...
#531
2016-10-26 11:21:30 +02:00
Jakub Roztocil
c6f2b32e36
Stricter KeyboardInterrupt silencing
...
Relates to #531 , but doesn't solve it completely.
2016-10-26 11:16:39 +02:00
Jakub Roztocil
f45cc0eec0
Added docstrings, refactored input.
2012-07-26 07:23:00 +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
06ea36aaa4
Added the ability to pass query string parameters.
2012-07-18 20:44:09 -05:00
Jakub Roztocil
2dba176aa8
Added support for terminal colors under Windows.
...
Tested on Python 2.7 under Windows 7 with PowerShell and cmd.exe.
Closes #36
2012-07-17 04:06:13 +02:00
Jakub Roztocil
6ab03b21b4
Fixed Content-Type for requests with no data.
...
Closes #62 .
2012-07-04 01:39:21 +02: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
4613d947a8
Default to POST also when stdin redirected.
...
+clean up
2012-06-24 01:25:30 +02: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
e175fe9d0e
Ensured a new line after the request message in the output.
2012-06-13 15:32:02 +02:00
Jakob Kramer
bced559496
use PrettyHttp class; working --headers and --body
2012-04-28 14:16:47 +02:00
Jakob Kramer
4aa86cb438
Use the full capability of HttpLexer
2012-04-26 14:48:38 +02: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
45ce446017
-j/--json now adds "Accept": "application/json" to GET requests if no previous Accept header exists.
2012-04-14 14:13:53 -05:00
Jakub Roztocil
0c4c6c4753
Added --auth-type and tests for basic/digest auth.
...
Closes #38 .
2012-04-11 13:56:25 +02:00
Jakub Roztocil
ee598d304d
Merge branch 'digest-auth' of https://github.com/dshafik/httpie into dshafik-digest-auth
2012-04-11 13:16:26 +02:00
Jakub Roztocil
c6c1489212
Refactored @mmb's fix to --verify; updated docs.
...
Closes #32 .
2012-04-11 12:46:08 +02:00
Matthew M. Boedicker
71d21d1feb
make --verify no command line argument work
2012-04-05 12:55:05 -04:00
Davey Shafik
153663cb92
Add support for Digest authentication
2012-03-22 10:51:33 -04:00
Jakub Roztocil
51aa0409e6
Added Python 3 support
...
Closes #11 .
2012-03-15 00:13:11 +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
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
ed888a2657
Made sure request Host is correct when printing.
2012-03-14 01:12:10 +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 Roztočil
ebb271334b
Corrected line breaks in the output.
2012-03-04 13:03:21 +01:00
Jakub Roztočil
6d14097844
Added travis-ci configuration.
2012-03-04 11:31:37 +01:00
Jakub Roztočil
b728710760
Factored out CLI parsing.
2012-03-04 10:49: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
Jakob Kramer
d670513c9f
use the __main__ submodule convention to make it possible to use python -m httpie
2012-03-02 18:35:33 +01:00