Making HTTP Requests using Chrome Developer tools

后端 未结 12 1555
小鲜肉
小鲜肉 2020-12-04 04:28

Is there a way to make an HTTP request using the Chrome Developer tools without using a plugin like POSTER?

12条回答
  •  悲哀的现实
    2020-12-04 05:18

    If your web page has jquery in your page, then you can do it writing on chrome developers console:

    $.get(
        "somepage.php",
        {paramOne : 1, paramX : 'abc'},
        function(data) {
           alert('page content: ' + data);
        }
    );
    

    Its jquery way of doing it!

提交回复
热议问题