问题遇到的现象和发生背景
华为服务器使用postman测试redfish API接口都没问题;同样的步骤测试DELL服务器,可以获取到DELL服务器的redfish版本,说明接口已经开启,但无法获取X-Auth-Token,什么原因?
返回错误:
400 Bad Request
The server could not understand the request. Maybe a bad syntax?
dell服务器请求、和返回的信息
POST http://172.31.32.76/redfish/v1/SessionService/Sessions
POST /redfish/v1/SessionService/Sessions HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.43.2
Accept: */*
Cache-Control: no-cache
Postman-Token: bf2584b1-0b4d-4f2a-806e-585f5caa5469
Host: 172.31.32.76
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 68
{
"UserName": "root",
"Password": "9bRX7592"
}
HTTP/1.1 400 Bad Request
Keep-Alive: timeout=60, max=199
Content-Type: text/html
Date: Thu, 27 Mar 2025 05:33:37 GMT
Cache-Control: no-cache
Content-Length: 249
Connection: Keep-Alive
Accept-Ranges: bytes
<!DOCTYPE html>
<head>
<title>Bad Request</title>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
</head>
<body>
<h2>Access Error: 400 -- Bad Request</h2>
<pre>Bad request parameters</pre>
</body>
</html>
操作环境、软件版本等信息
华为服务器型号RH8100v3,"RedfishVersion": "1.0.2"
DELL服务器型号DELL R730xd,"RedfishVersion": "1.0.0"
尝试过的解决方法
postman已经关闭SSL,已经尝试http和https
通过浏览器方式,HTTP直接登录dell服务器该IP的idrac界面,可以正常登录,
我想要达到的结果
如何通过postman测试dell服务器的redfish API接口?
是否有额外的需要检查、配置的选项?包括服务器侧和postman测试软件侧?