Reputation: 327
Is it possible to see what rest calls a page makes when I visit it? Like if I go to google drive, can I see what calls my browser is making to their web servers? If so how? Would something like Wireshark be used in this case? Is there something higher level than that?
Upvotes: 27
Views: 86877
Reputation: 17428
Here is a demonstration on how to obtain the API URL from the ProtonMail pricing page:
Network
tab.Fetch/XHR
option and click on the desired item in the left panel.Request URL
can be found in the Headers
tab.Upvotes: 14
Reputation: 2915
In Chrome Ctrl + Shift + I then click network. You can view all network traffic or filter it. AJAX requests generally show up under XHR (XmlHttpRequest) unless the website is using JSONP - in that case they would appear under Scripts.
Upvotes: 22
Reputation: 91917
Most modern browsers have some sort of developer console you can use. For example, in Chrome you can open the console with Ctrl-Shift-J, and then select the Network tab. After that, all network requests will be logged so that you can inspect them.
Upvotes: 0