0

POST JSON 正文不适用于这些插件并已打开问题。我已成功用于 oauth、ntlm 等的相同 POST 语法

  1. 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

  2. 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

  3. 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

4

1 回答 1

0

这些问题应通过以下方式解决:

  1. 请求鹰:PR #32
  2. httpie-http-签名:PR #6
  3. httpie-hmac-auth:公关 #6
于 2021-06-04T12:31:39.433 回答