File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Tracking XMLHTTPRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tracking XMLHTTPRequest" Watch "Tracking XMLHTTPRequest" New topic

Tracking XMLHTTPRequest

Al Gettier

Joined: Nov 16, 2005
Posts: 8
I would like to track whether any scripts loaded with a page are sending and receving data to the web server from my script that is loaded.

I can't figure a way to do it, does anyone have any ideas?
Sanjiv Jivan
Ranch Hand

Joined: Nov 03, 2005
Posts: 52
If you're using IE, then you can run Fiddler ( which allows you to monitor http traffic.

If you're using Firefox, you can use this GreaseMonkey script :

Hope this helps,
Al Gettier

Joined: Nov 16, 2005
Posts: 8
Actually, what I want to do is send data to the webserver via a cookie. I am keeping counts of some of the events on the web page, like mouse clicks. And I am putting that info in a cookie.

But I need to know if/when the data in the cookie was actually sent as part of another script's AJAX calls.
I agree. Here's the link:
subject: Tracking XMLHTTPRequest
It's not a secret anymore!