firebug:如何在萤幕控制台发送POST数据? [英] firebug: how to send POST data in firebug console?

查看:454
本文介绍了firebug:如何在萤幕控制台发送POST数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用POST将数据发送到服务器?



ie)我想发送POST数据到url:

  http://www.a.com/b?cmd=tt 

使用POST数据:

  a = 1 
b = 2

是可行的吗?

解决方案<引用Mike Cooper的一个类似的问题:


据我所知,Firebug无法做到这一点。然而,Firebug的精神有一个非常有用的Firefox扩展,叫做篡改数据。这应该能够做你想做的。



它允许你监视浏览器发出的每个请求,你可以打开一个选项,让你看看,并编辑每一个请求,然后才能发送。


查看源代码中的其他答案:
如何使用Firebug发布到网页?

另请参阅:使用Firebug发送表单数据 上面的工作,如果你只是想修改HTTP请求,但实际上创建HTTP请求,有一个Firefox的扩展称为


a href =https://addons.mozilla.org/en-us/firefox/addon/poster/ =nofollow noreferrer>海报,其中有以下描述:


用于与Web服务和其他Web资源进行交互的开发人员工具允许您发出HTTP请求的资源,设置实体正文和内容类型。这允许您与Web服务交互并检查结果...



Is it possible to send data to the server using POST?

Ie) I want to send POST data to url:

http://www.a.com/b?cmd=tt

With POST data:

a=1
b=2

Is it doable and how?

解决方案

Quote from Mike Cooper on a similar question:

As far as I know, Firebug can't do this. However, there is a very useful Firefox extension, in the spirit of Firebug, called Tamper Data. This should be able to do what you want.

It allows you to monitor each request made by the browser, and you can turn on an option that allows you to look at, and edit, every single request before it gets sent.

See other answers at source: How do I POST to a web page using Firebug?
Also see: Using Firebug to send form data


The above work if you simply want to modify HTTP requests, but to actually create HTTP requests, there is a Firefox extension called Poster, which has the following description:

A developer tool for interacting with web services and other web resources that lets you make HTTP requests, set the entity body, and content type. This allows you to interact with web services and inspect the results...

这篇关于firebug:如何在萤幕控制台发送POST数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆