How to stop http redirect?

Posted on 2004-11-17
Last Modified: 2007-12-19
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.

Question by:agarkar
    LVL 34

    Expert Comment


    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

    Author Comment

    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?
    LVL 3

    Expert Comment

    LVL 8

    Expert Comment


    Author Comment

    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.

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    NetScaler Deployment Guides and Resources

    Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

    Suggested Solutions

    Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack or Above. The following steps a…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now