• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

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
0
agarkar
Asked:
agarkar
1 Solution
 
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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now