如何使用Firefox或Chrome手动触发HTTP POST请求? [关闭]

我想在我正在处理的Web应用程序上测试一些URL。 为此,我想手动建立HTTP POST请求(这意味着我能够添加我喜欢的任何参数)。 git

我缺乏Chrome和/或Firefox中的任何扩展程序或功能吗? github


#1楼

对于firefox,还有一个名为RESTClient的扩展,很是好用: web

https://addons.mozilla.org/en-US/firefox/addon/restclient json


#2楼

CURL很棒,能够作你想要的! 这是一个简单但有效的命令行工具。 api

其他实现测试命令: 网络

curl -i -X GET http://rest-api.io/items
curl -i -X GET http://rest-api.io/items/5069b47aa892630aae059584
curl -i -X DELETE http://rest-api.io/items/5069b47aa892630aae059584
curl -i -X POST -H 'Content-Type: application/json' -d '{"name": "New item", "year": "2009"}' http://rest-api.io/items
curl -i -X PUT -H 'Content-Type: application/json' -d '{"name": "Updated item", "year": "2010"}' http://rest-api.io/items/5069b47aa892630aae059584

#3楼

受到Postman for Chrome的极大启发,我决定为Firefox编写相似的内容。 app

REST Easy *是一个无重启的Firefox附加组件,旨在尽量多地提供对请求的控制。 附加组件仍然处于实验状态(甚至尚未被Mozilla审查)可是开发进展顺利。 curl

该项目是开源的,因此若是有人以为有必要帮助开发,那就太棒了: https//github.com/nathan-osman/Rest-Easy 工具

* http://addons.mozilla.org上提供的附加组件将始终略微落后于GitHub上提供的代码 测试


#4楼

查看firefox的http-tool ..

https://addons.mozilla.org/en-US/firefox/addon/http-tool/

Aimed at web developers who need to debug HTTP requests and responses.
Can be extremely useful while developing REST based api.

Features:
* GET
* HEAD
* POST
* PUT
* DELETE

Add header(s) to request.
Add body content to request.

View header(s) in response.
View body content in response.
View status code of response.
View status text of response.

#5楼

火狐

按Ctrl-Shift-Q或按Firefox - >开发人员工具 - >网络选项卡(突出显示),打开开发人员工具中的网络面板。 而后单击右上角的小门图标(在屏幕截图中以扩展形式显示,它将在突出显示的标题左侧找到),第二行(若是您没有看到它而后从新加载页面) - >编辑和从新发送您想要的任何请求

编辑:添加图像。

Firefox Dev Tools突出显示“编辑和从新发送”按钮

POST请求正文已突出显示

相关文章
相关标签/搜索