如何在浏览器和参数发送中测试HTTP POST API。

编程入门 行业动态 更新时间:2024-10-26 00:30:39
本文介绍了如何在浏览器和参数发送中测试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。

本文发布于:2023-11-24 18:45:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626391.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   参数   测试   如何在   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!