跳到主要内容
版本:latest

get_https_settings

获取网站的 HTTPS 模式及 HTTP→HTTPS 跳转状态。

  • 路由POST /site
  • actionget_https_settings

输入参数

参数名称必选类型描述
actionString固定值 get_https_settings

输出参数

参数名称类型描述
statusBoolean请求结果
data.https_modeBoolean是否开启 HTTPS
data.http2httpsBoolean是否开启 HTTP→HTTPS 强制跳转
codeInteger状态码
timestampInteger时间戳

示例

请求

POST /site HTTP/1.1
Content-Type: application/x-www-form-urlencoded

request_time=1700000000&request_token=xxx&action=get_https_settings

响应

{
"status": true,
"msg": "ok",
"data": {"https_mode": false, "http2https": false},
"code": 0,
"timestamp": 1779443313
}