How to stop http redirect?

Hi All,

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.

Amit
agarkarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave_DietzCommented:
http://download.microsoft.com/download/d/e/5/de5351d6-4463-4cc3-a27c-3e2274263c43/wfetch.exe

Download this tool and point it to the URL where you are receiving the redirect.  It will show you the raw output from the webserver and you should see the address you are being redirected to.

Dave Dietz
0
agarkarAuthor Commented:
Thanks Dave,

I am not sure how would I be able to use this for performance testing of tomcat, where I need to hit tomcat with several hundreds of requests and track the redirected url and not to follow them?
0
Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

seb_gibbsCommented:
0
agarkarAuthor Commented:
I tried the above links provided but nothing seemed to work. Finally I found a solution using Silk Performer, its a performance testing tool. It has a function which can be used to reject the redirect requests from the server, and simultaneously hit with as many users you want. But this tool needs an expensive license, and we had this in our QA department. Thanks all.  One of my co-worker suggested an inexpensive way, to write your own java class which will reject the redirections.
0
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Application Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.