如何在浏览器和参数发送中测试HTTP POST API。 [英] How do I test HTTP POST API in browser and parameter sending.
本文介绍了如何在浏览器和参数发送中测试HTTP POST API。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1。如何从浏览器测试HTTP POST Web API?如果没有,有什么方法可以单独测试HTTP POST API,例如'GET'API。
我尝试过的方法:
1.在Chrome浏览器中播放:
消息:请求的资源不支持http方法:GET
2.尝试在IBM API管理中测试,但它没有用。
3.API在应用程序中工作正常,但无法单独测试。
解决方案
使用像Postman这样的Chrome插件。谷歌postman rest client或chrome postman plug-in。
这不是浏览器本身支持的东西,但是有各种工具允许你向你发出POST请求API。
例如:高级REST客户端 - Chrome网上应用店 [ ^ ]
1. How to test a HTTP POST web API from browser? If not, what are the possible ways to test HTTP POST API individually like 'GET' API's.
What I have tried:
1.Tried in Chrome browser:
"Message: The requested resource does not support http method:GET"
2.Tried to test in IBM API management, but it didn't worked.
3.API is working fine in the application, but unable to test it individually.
解决方案
Use a Chrome plug-in like "Postman". Google "postman rest client" or "chrome postman plug-in".
This isn't something that browsers support natively, but there are various tools which allow you to make POST requests to your API.
For example: Advanced REST client - Chrome Web Store[^]
这篇关于如何在浏览器和参数发送中测试HTTP POST API。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文