Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to log HTTP request client side with javascript?

Is it possible to log HTTP request client side with javascript? For instance going to some website-> opening the chrome console-> enter some javascript and console.log GET and POST URL's. Similar as the chrome network tab does. I have Googled but couldn't find anything that addresses this problem. Is this only possible server side?

like image 841
Youss Avatar asked Mar 14 '26 19:03

Youss


1 Answers

If you're talking about the request for the current page, no, there's not much you can do client-side. You can get some information on AJAX requests from the XMLHttpRequest object, but not as thorough as the browser's developer tools.

like image 89
user2417788 Avatar answered Mar 17 '26 09:03

user2417788



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!