Reputation: 4212
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?
Upvotes: 3
Views: 3100
Reputation: 48
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.
Upvotes: 2