How do I POST to a web page using Firebug?

HttpPostFirebug

Http Problem Overview


How do I POST to a web page using Firebug?

Http Solutions


Solution 1 - Http

You can send POST request to any page by opening console (e.g. in FireFox ctrl + shift + k) and typing simple JS:

var formPost = document.createElement('form');
formPost.method = 'POST';
formPost.action = 'https://www.google.com'; //or any location you want
document.body.appendChild(formPost);
formPost.submit();

Solution 2 - Http

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

Solution 3 - Http

Firefox 27 (maybe earlier versions too, never checked) has built-in developer tools to modify and resend requests. If you don't have Firebug installed, the console is available by pressing the F12 key. If Firebug is installed, press Ctrl+Shift+K instead.

enter image description here

Solution 4 - Http

I know this is an old question, but I recently stumbled upon the same problem and wanted to share the method I am using.

Assuming the web site you want to POST to has a form with method="POST" (a very likely scenario), you can use Firebug's JavaScript command line to programmatically submit a POST request. Just click the "Show Command Line" icon in Firebug and enter something like this in the narrow text box at the very bottom of the window:

    document.forms[0].submit()

Maybe this helps someone.

Solution 5 - Http

Another simple solution is to load any webpage that uses jQuery, and type up a $.post() in the console.

Solution 6 - Http

https://addons.mozilla.org/en-us/firefox/addon/http-resource-test/">HTTP resource test is a firefox plugin that can do this.

Solution 7 - Http

Another powerful Firefox plugin to perform post request and some more features is the Hackbar.

Solution 8 - Http

Related: To resend a POST already made, right click the POST request in the Net/XHR view and click "Resend".

Using Firebug 1.12.0:

Solution 9 - Http

Got here looking for a Firebug way of doing this. Then I realized that I could use Fiddler. This is the most powerful tool I know when it comes to debugging web requests.

> Fiddler The free web debugging proxy for any browser, system or > platform

Click the Composer tab and write your request as desired - then click Execute.

Solution 10 - Http

NO NEED of plugins !!

Just drag any url in BOOKMARK BAR, then right click and EDIT, and insert javascript code:

enter image description here

javascript:var my_params=prompt("Enter your parameters","var1=aaaa&var2=bbbbb"); var Target_LINK=prompt("Enter destination", location.href); function post(path, params) {   var form = document.createElement("form");   form.setAttribute("method", "post");   form.setAttribute("action", path);   for(var key in params) { 	if(params.hasOwnProperty(key)) { 		var hiddenField = document.createElement("input"); 		hiddenField.setAttribute("name", key); 		hiddenField.setAttribute("value", params[key]); 		form.appendChild(hiddenField); 	}   }   document.body.appendChild(form);  form.submit(); }   parsed_params={}; my_params.substr(1).split("&").forEach(function(item) {var s = item.split("="), k=s[0], v=s[1]; parsed_params[k] = v;}); post(Target_LINK, parsed_params); void(0); 

then enter the target site-link, and click that button in BOOKMARK BAR! That's all!





( source: https://stackoverflow.com/a/38643171/2377343 )

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGuyView Question on Stackoverflow
Solution 1 - HttpMarko VranjkovicView Answer on Stackoverflow
Solution 2 - HttpMike CooperView Answer on Stackoverflow
Solution 3 - HttpPiotr KochańskiView Answer on Stackoverflow
Solution 4 - HttpchrisView Answer on Stackoverflow
Solution 5 - HttpJoeView Answer on Stackoverflow
Solution 6 - HttpBozhoView Answer on Stackoverflow
Solution 7 - HttpoopbaseView Answer on Stackoverflow
Solution 8 - HttpMurrahView Answer on Stackoverflow
Solution 9 - HttpLeniel MaccaferriView Answer on Stackoverflow
Solution 10 - HttpT.ToduaView Answer on Stackoverflow