How do I POST to a web page using Firebug?

后端 未结 10 1637
灰色年华
灰色年华 2020-12-13 03:24

How do I POST to a web page using Firebug?

相关标签:
10条回答
  • 2020-12-13 03:58

    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();
    
    0 讨论(0)
  • 2020-12-13 04:00

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

    0 讨论(0)
  • 2020-12-13 04:00

    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:

    0 讨论(0)
  • 2020-12-13 04:01

    HTTP resource test is a firefox plugin that can do this.

    0 讨论(0)
  • 2020-12-13 04:04

    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.

    0 讨论(0)
  • 2020-12-13 04:05

    NO NEED of plugins !!

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

    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 )

    0 讨论(0)
提交回复
热议问题