Why am I getting request method GET not supported?

2019-07-20 01:42发布

I am using PostMan as a REST client to test this API method Cisco ACL Analysis API. specifically POST /acl/trace or getAClTracksStd (first go to Policy Analysis)

Here is my PostMan HTTP test callenter image description here

Does anyone who is familiar with PostMan understand why I am getting this "Request method 'GET' is not supported" error from the server? I am making a POST HTTP request, not GET.(Selected from Drop down menu) It make more sense for me to get a input invalid parameter error or something.

Just to show that the endpoint url works, heres a HTTP test request that works enter image description here(same link, host->host API -> GET /host/{startIndex}/{recordsToReturn}

2条回答
唯我独甜
2楼-- · 2019-07-20 02:12

There's two issues that I'm seeing with your REST call. First, the error you're seeing is because the call needs to be preceded by "https://". Second, remove the interface IDs parameter and values. You should get a response with data after making these changes.

查看更多
疯言疯语
3楼-- · 2019-07-20 02:16

Your json looks erronuous (comma after the destIp) - and the server probably always responds with a default confusing error message in this case. (Postman is very well tested and it sends POST).

查看更多
登录 后发表回答