POST JSON 正文不适用于这些插件并已打开问题。我已成功用于 oauth、ntlm 等的相同 POST 语法
HAWK echo '{"hello": "world"}' | http POST http://localhost:8080/ --auth-type=hawk --auth 'username:password' 错误:http:错误:TypeError:需要一个类似字节的对象,而不是'str'打开的问题:https: //github.com/mozilla-services/requests-hawk/issues/26
HMAC echo '{"hello": "world"}' | http POST http://localhost:8080/ --auth-type=hmac --auth 'username:password' http: error: TypeError: sequence item 1: expected str instance, bytes found Opened Issue: https://github. com/guardian/httpie-hmac-auth/issues/5
HTTPIE echo '{"hello": "world"}' | http POST http://localhost:8080/ --auth-type=httpsig --auth 'username:password' http: error: AttributeError: 'bytes' object has no attribute 'encode' Opened Issue: https://github. com/east36/httpie-http-signatures/issues/5