1
0
mirror of https://github.com/httpie/cli.git synced 2025-01-10 00:28:12 +02:00
httpie-cli/httpie
Marc Abramowitz 7f8adad313 Print info about request on error
This can help in diagnosing certain issues. For example, if I were
trying to use a "http+unix" URL but I don't have #299, then I'll get the
following:

    [marca@marca-mac2 httpie]$ http http+unix://%2Ftmp%2Fprofilesvc.sock/status/pid

    http: error: ConnectionError: ('Connection aborted.', gaierror(8, 'nodename nor servname provided, or not known'))
    while doing GET request to URL: http://http+unix//%2Ftmp%2Fprofilesvc.sock/status/pid

Having the URL in the error message is super useful here so that I know an
extra `http://` is getting prepended and it's not doing what I expected.
2015-02-15 23:22:52 -08:00
..
output Default --style to "monokai" 2015-02-14 22:51:31 +01:00
plugins Cleanup 2015-02-05 15:55:20 +01:00
__init__.py 1.0.0-dev 2015-02-07 17:04:33 +01:00
__main__.py Added docstrings, refactored input. 2012-07-26 07:23:00 +02:00
cli.py --certkey is now --cert-key 2015-01-23 23:54:27 +01:00
client.py Changed the default JSON Content-Type to application/json. 2015-02-14 17:45:15 +01:00
compat.py Added a PyPy incompatibility workaround. 2015-02-15 00:36:55 +01:00
config.py Fixed multiple uploads with the same field name 2014-10-20 14:41:48 +02:00
context.py Pypy3 (2.4.0) curses bug workaround. 2015-01-23 22:19:02 +01:00
core.py Print info about request on error 2015-02-15 23:22:52 -08:00
downloads.py Cleanup 2014-07-18 13:39:47 +02:00
input.py Added a PyPy incompatibility workaround. 2015-02-15 00:36:55 +01:00
models.py HTTP/2 has no minor versions. 2015-02-07 16:31:42 +01:00
sessions.py Added support for transport adapter plugins 2015-02-05 15:25:00 +01:00
utils.py Work around missing object_pairs_hook in Python 2.6 2015-01-23 22:04:42 +01:00