views:

127

answers:

7
  1. I want to see each url request made my by browser.
  2. I want to see the url requests made by ajax.

Which software should I use? Some java code would also help.

+2  A: 

Firefox has a great plugin called LiveHTTPHeaders that I think will get you what you are looking for. I'm not positive on the AJAX part of the question, but it's worth a shot. I consider LiveHTTPHeaders to be an indispensable tool for anyone doing web development.

Kevin Day
LiveHTTPHeaders is excellent. I have used it a lot. If I just need to see the individual files without any of the details, I prefer FireBug's net panel or Google Page Speed Activity panel. Both of those have nice graphical colored displays.
TheJacobTaylor
+1  A: 

There are lots of great programs out there that will do this. My answer would really depend on what you are trying to do.

Adding an HTTP proxy that logs requests will easily do the job.

You can also leverage browser plugins such as FireBug and Google's Page Speed to see the requests fly in realtime.

Jacob

TheJacobTaylor
+3  A: 

You can use Fiddler or if you need to "go deep" (as their web page says), you can use Wireshark.

JP Alioto
+1 for Wireshark. That was my first thought too until I realized it was overkill for the question.
Gabriel Hurley
@Gabriel: Agreed, but it's nice to have it in your tool kit just in case. :)
JP Alioto
+1  A: 

I don't really understand where do you want to see the traffic. But if what you mean is browser and if you are using Firefox then Firebug will come handy.

William Notowidagdo
+2  A: 
Unknown
A: 

So many great extensions for Firefox that'll give you that info:

  • Firebug
  • PageSpeed
  • LiveHTTPHeaders

You could also try using the developer tools in Safari or Chrome if you're not a Firefox fan.

If you use IE... why are you using IE? ;-)

Gabriel Hurley
A: 
  1. Any personal proxy will do. Fiddler was already suggested.
  2. For Firefox I would use the TamperData plugin.
DmitryK