| 名称 | Proxy-Authorization |
|---|---|
| 作用 | 代理层认证凭证 |
| 规范 | RFC 9110 §11.7.2 |
| 配套 | 代理以 407 + Proxy-Authenticate 发起挑战 |
curl 指定代理认证
curl 指定代理认证
curl -si -x http://proxy.corp:3128 -U alice:secret https://example.com/
# 等价于设置 Proxy-Authorization: Basic …(仅发给代理)代理跳数多时,该头在每一跳被消费;排障 407 时确认凭证对应的正是当前那一级代理。