xh
xh copied to clipboard
Differences from HTTPie
--check-statusis enabled by default unless xh is used in strict compatibility mode.- Rustls is used by default instead of the system's TLS library. (If enabled at compile time, the
--native-tlsflag can be used.) - JSON keys are not sorted.
- Header names are not case-sensitive.
- Header values are not decoded as ISO-8859-1. See https://github.com/ducaale/xh/issues/323
- Formatted output is always UTF-8.
- Leading dot is always removed from cookie domains. See https://github.com/SergioBenitez/cookie-rs/issues/73
.netrcsupports bearer authentication. See https://github.com/ducaale/xh/pull/267
Formatted output is always UTF-8.
What this means (IIRC) is that if:
- The output is being redirected
- The response is JSON
- The response is latin1 (or some other non-UTF-8 encoding)
--pretty=formatis passed
then HTTPie will turn the formatted JSON back into latin1, while we write it as UTF-8.