Apifox Echo
  1. Auth
Apifox Echo
  • Apifox Echo
  • HTTP 方法
    • 使用 Query 参数
      GET
    • 使用 POST 参数
      POST
    • 使用 DELETE 参数
      DELETE
    • 使用 PUT 参数
      PUT
    • 使用 PATCH 参数
      PATCH
  • HTTP 状态码
    • 返回指定的状态码(可指定多个随机返回)
      DELETE
    • 返回指定的状态码(可指定多个随机返回)
      GET
    • 返回指定的状态码(可指定多个随机返回)
      PATCH
    • 返回指定的状态码(可指定多个随机返回)
      POST
    • 返回指定的状态码(可指定多个随机返回)
      PUT
    • 返回指定的状态码(可指定多个随机返回)
      TRACE
  • 任意内容
    • 返回所有Request的内容
      DELETE
    • 返回所有Request的内容
      GET
    • 返回所有Request的内容
      PATCH
    • 返回所有Request的内容
      POST
    • 返回所有Request的内容
      PUT
    • 返回所有Request的内容
      TRACE
    • 返回所有Request的内容
      DELETE
    • 返回所有Request的内容
      GET
    • 返回所有Request的内容
      PATCH
    • 返回所有Request的内容
      POST
    • 返回所有Request的内容
      PUT
    • 返回所有Request的内容
      TRACE
  • 动态内容
    • 解码 base64url-encoded 字符串
    • 返回 n 个随机 bytes
    • 延迟返回
    • 延迟返回
    • 延迟返回
    • 延迟返回
    • 延迟返回
    • 延迟返回
    • Drips data over a duration after an optional initial delay.
    • 生成包含分页码的数据
    • Streams 方式返回 n 个字节
    • Stream 方式返回 n 个字节
    • Stream 方式返回 n 个 JSON
    • 返回一个 UUID4
  • 返回格式
    • 返回 Brotli-encoded 数据
    • 返回 Deflate-encoded 数据
    • Returns page denied by robots.txt rules.
    • 返回 UTF-8 encoded body
    • 返回 GZip-encoded 数据
    • 返回简单的 HTML 数据
    • 返回简单的 JSON 数据
    • 返回 robots.txt rules
    • 返回简单的 XML 数据
  • 检查 Response 信息
    • Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.
    • Sets a Cache-Control header for n seconds.
    • Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.
    • Returns a set of response headers from the query string.
    • Returns a set of response headers from the query string.
  • 检查 Request 信息
    • 返回 Request HTTP header
    • 返回请求的 IP 地址
    • 返回请求的 User-Agent header
  • 图片
    • 返回 JPEG 格式图片
    • 返回 PNG 格式图片
    • 返回 SVG 格式图片
    • 返回 SEBP 格式图片
    • 根据 Accept header 返回对应格式图片
  • Cookies
    • 返回 cookie 数据
    • Deletes cookie(s) as provided by the query string and redirects to cookie list.
    • 通过 Query 参数设置 Cookie
    • Sets a cookie and redirects to cookie list.
  • 重定向
    • Absolutely 302 Redirects n times.
    • 302/3XX Redirects to the given URL.
    • 302/3XX Redirects to the given URL.
    • 302/3XX Redirects to the given URL.
    • 302/3XX Redirects to the given URL.
    • 302/3XX Redirects to the given URL.
    • 302/3XX Redirects to the given URL.
    • 302 Redirects n times.
    • Relatively 302 Redirects n times.
  • Auth
    • HTTP Basic Auth
      GET
    • Bearer Token
      GET
    • Digest Auth
      GET
    • Digest Auth + Algorithm
      GET
    • Digest Auth + Algorithm
      GET
    • HTTP Basic Auth
      GET
  1. Auth

Digest Auth + Algorithm

GET
/digest-auth/{qop}/{user}/{passwd}/{algorithm}/{stale_after}
Auth
allow settings the stale_after argument.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://echo.apifox.com/digest-auth/test/admin/admin/MD5/test'
响应示例响应示例
200 - 示例 1
{}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Digest 之后拼接摘要加密方案
示例:
Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
Path 参数
qop
string 
必需
auth or auth-int
示例值:
test
user
string 
必需
示例值:
admin
passwd
string 
必需
示例值:
admin
algorithm
string 
必需
MD5, SHA-256, SHA-512
示例值:
MD5
stale_after
string 
必需
示例值:
test

返回响应

🟢200Sucessful authentication.
application/json
Body
object {0}
🟠401Unsuccessful authentication.
修改于 2023-01-05 07:50:19
上一页
Digest Auth + Algorithm
下一页
HTTP Basic Auth
Built with