Why am I getting request method GET not supported?

巧了我就是萌 提交于 2019-12-12 21:22:36

问题


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 call

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

(same link, host->host API -> GET /host/{startIndex}/{recordsToReturn}

回答1:


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.




回答2:


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).



来源:https://stackoverflow.com/questions/29980675/why-am-i-getting-request-method-get-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!