#1603·cli

对于 Digest 身份验证,未打印中间响应头

作者: svenXY创建于 2024年10月4日更新于 2026年8月9日
标签bugnew

□ 核对表

  • 我找过类似的问题
  • 我在使用最新版本的HTTPie.

-- -- . . .

□ 最小复制代码和步骤

  1. 以卷曲显示
卷曲 https://httpbin.io/digest-auth/auth/user/pass-i-digest-user"用户:pass"
HTTP/1.1 401 未经许可
访问控制 - Allow - 证书: 真实
Access-Control-Allow-Origin: * 互联网档案馆的存檔,存档日期2013-10-02.
内容- Type: 应用程序/json; cherset=utf-8
Www-Authenticat: Digest qop=auth,域名="httpbin.io",算法=MD5,非ce=046646467c2af05e1dc364766a0881e5f,不透明=dace930722ac222226b9b442aaa01127f
日期:Fri,04 October 2024 14:18:46格林尼治标准时
内容- Length: 52

HTTP/1.1 200 已经确定
访问控制 - Allow - 证书: 真实
Access-Control-Allow-Origin: * 互联网档案馆的存檔,存档日期2013-10-02.
内容- Type: 应用程序/json; cherset=utf-8
日期:Fri,04 October 2024 14:18:46格林尼治标准时
内容- Length: 43

{
"授权":是的,
"用户":"用户"
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?
  1. 与 http 显示
http-verbose-print=HhBbm-A 摘要-a'user:pass'-all https://httpbin.io/digest-auth/auth/user/pass 页面存档备份,存于互联网档案馆.
获得/digest-auth/auth/用户/通过HTTP/1.1
接受: */*
接受编码:gzip、daflate、br
连接: 保持静止
主机: httpbin.io
用户代理:HTTPie 3.2.3



HTTP/1.1 200 已经确定
访问控制 - Allow - 证书: 真实
Access-Control-Allow-Origin: * 互联网档案馆的存檔,存档日期2013-10-02.
内容- Length: 43
内容- Type: 应用程序/json; cherset=utf-8
日期:格林尼治平时14:17:26

{
"授权":是的,
"用户":"用户"
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?

401回應被忽略了,尽管我已指定了——所有文件都明确声明,"中间HTTP通信包括后继的重定向(与 -- follows),在使用HTTP文摘认证时的第一个未经授权的请求(--auth=digest)等".

https://httpie.io/docs/cli/viewing-intermedicry-requestsress/respresidents.com.com. 请检查date=中的日期值 (帮助).

□ 当前结果

401号答复缺失

□ 预期结果

401 响应应显示

-- -- . . .

□ 调试输出

请用 “- debug” 重运行命令, 然后复制整个命令输出并粘贴在下面 :

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢? http --debug -- print=HhBbm - A 摘要 - a 'user: pass' -- all https://httpbin.io/digest-auth/auth/user/pass 互联网档案馆的存檔,存档日期2013-12-02. HTTPie 3.2.3 (韩语). 请求2.31.0 2.1.8. 区划 Python 3.12.6 (主,2024年9月6日,19:03:47) [Clang 15.0.0 (clang-1500.3.9.4)] (中文(简体) ). /opt/homebrew/Cellar/httpie/3.2.3/libexec/bin/Python 达尔文 23.6.0

< 环境{' 应用 警告 过滤器' : < 函数环境. 应用 警告 过滤器 at 0x106774d60>, 'args': 命名空间 (,), 'as silent':<函数环境.as silent at 0x106774c20>, '颜色':256, 配置 : {'default options' : []}, “ config dir”: PosixPath('/用户/Sven/.config/httpie'), 'devnul': 0x106756f70>时的"财产"天体, '是 窗口':虚假, 'log error': <函数环境.log error at 0x106774cc0>, '程序名称':'http', '安静':0, 'rich console' : <functools.cached property object at 0x10674f6e0>, (中文(简体) ). 'rich error console': <functools.cached property object at 0x10674f740>, 页面存档备份,存于互联网档案馆, p. '显示':真, 'stderr': < io. TextIOWrapper name=''''' 模式='w'编码='utf-8''', 'sder isatty':对, 'sdin':< . 文本处理器 . . . . . . .