I am testing a tomcat server for performance using shell scripts. I am using 'wget' command which hits the tomcat with the request for downloading a file, and tomcat redirects this request to some other address. But I dont want to get redirected, instead just want to hit the tomcat with request and read its redirect address(http), so I'm just testing its routing capability.
Is there any way to stop those redirects in 'wget' or can I use any other command for this purpose? Thanks.