- Apifox Echo
- HTTP 方法
- HTTP 状态码
- 任意内容
- 动态内容
- 返回格式
- 检查 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 信息
- 图片
- Cookies
- 重定向
- Auth
HTTP Basic Auth
GET
https://echo.apifox.com/hidden-basic-auth/{user}/{passwd}
Auth
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://echo.apifox.com/hidden-basic-auth/admin/admin' \
--header 'Authorization: Basic Og=='
响应示例响应示例
200 - 示例 1
{}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 {{Username}}:{{Password}}示例:
Authorization: Basic *****************
Path 参数
user
string
必需
示例值:
admin
passwd
string
必需
示例值:
admin
返回响应
🟢200Sucessful authentication.
application/json
Body
object {0}
🟠404Unsuccessful authentication.
修改于 2023-01-05 07:50:19