Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Examining AJAX HTTP requests using Web Inspector

Is there an easy way to examine the HTTP GET/POST/OPTIONS/HEAD etc requests being made by jquery ajax calls using WebKit's Web Inspector? I'm hand crafting responses and am looking for a simple way to monitor the back and forth traffic.

like image 683
Tristan Avatar asked Nov 19 '09 22:11

Tristan


People also ask

How do I know if request is AJAX request?

In Laravel, we can use $request->ajax() method to check request is ajax or not.

Is AJAX an HTTP request?

An AJAX request is a request made by an AJAX application. Typically, it is an HTTP request made by (browser-resident) Javascript that uses XML to encode the request data and/or response data.


2 Answers

The Resources tab will show Request/Response headers and the response itself. Were you looking for something else? Using "Sort by Start Time" is probably the most useful setting for watching new requests.

like image 199
Andy Gaskell Avatar answered Nov 14 '22 23:11

Andy Gaskell


You could also use Firebug (a Firefox plugin) or a sniffer like Wireshark (here some example filters for Wireshark).

like image 39
Sergi Avatar answered Nov 15 '22 01:11

Sergi