How do I POST to a web page using Firebug?

Guy picture Guy · Aug 4, 2009 · Viewed 55.8k times · Source

How do I POST to a web page using Firebug?

Answer

Marko Vranjkovic picture Marko Vranjkovic · Aug 9, 2012

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();