尝试调用API时出现错误-"此服务器上未找到请求的URL "
适用场景
- Brocade
- SANNAV
问题描述
- 在尝试通过只读用户从SANNAV调用API来提取数据时、此操作 失败、并显示错误""
The requested URL was not found on this server
、并且未 获得正确的会话ID响应。
curl -vvv -k -H "username: " -H "password: " -H "Accept:application/json" -X POST https://10.226.xx.xx/external-api/v1/login
/v1/login
* Trying 10.226.xx.xx...
* TCP_NODELAY set
* Connected to 10.226.xx.xx (10.226.xx.xx) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS alert, handshake failure (552):
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
* Closing connection 0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
curl -k -H "username" -H "password" -H "Accept:application/json" -X POST https://10.229.xx.xx/external-api/v1/login
The requested URL was not found on this server
curl -k -u "" -H "Accept:application/json" -X POST https://10.225.xx.xx/#/external-api/v1/login
Enter host password for user 'user':
{
"code": "4XX",
"error": "Proxy Service - Client error response",
"error_description": "Proxy Service - Check your input parameters and HTTP body"
}
- 登录后尝试使用斜杠、但 仍然没有运气-
curl -k -H "username" -H "password" -H "Accept:application/json" -X POST https://10.229.xx.xx/external-api/v1/login/
正在尝试完全相同的URL返回 错误
HTTP/1.1 404 Not Found
。以下 是 附加的详细输出-> POST /external-api/v1/login/ HTTP/1.1
> Host: 10.229.xx.xx
> User-Agent: curl/7.61.1
> Accept: */*
> Content-Type:application/json
>
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS app data, [no content] (0):
< HTTP/1.1 404 Not Found
< Date: Thu, 28 Mar 2024 13:26:47 GMT
< Server: Apache
< Strict-Transport-Security: max-age=31536000; includeSubDomains