我正在尝试连接到FortiSandbox api,guide here。
来自指南的片段:
我的用户名:admin
我的密码:Aa12345!
卷曲:
curl -X POST \
https://10.1.1.170/sys/login/user/ \
-H 'accept: application/json' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: bd3ae694-f400-c723-8955-bfc4e96c8147' \
-d '{
"method": "exec",
"params": [{
"url": "/sys/login/user/",
"data": [{
"user": "admin",
"passwd": "Aa12345!"
}]
}],
"id": 1,
"ver": "2.0"
}'
响应是HTML而不是Json,qazxsw poi
PLZ给绝望的人提供建议一些HTML响应:
here full HTML content response
<!DOCTYPE html>
<html lang="en">
<head>
<title>FortiSandbox - Please login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
.
.
.