When I invoke an URL I get in an infinite loop due to "301 Move Permanently" HTTP Response Code.
I'd like know the output and input requests that the machine is sending/receiving.
Is there any way to get this info?
The machine is a RHEL 5.5
I would suggest you to enable extended logs in the web service to log all input/output requests. Please check official mod_dumpio module documentation for Apache.
I can think of following two things you can take help of.
where ip_addr_of_client is host from which you are accessing the url.