You have all the information you need in the status return code from
the server so that you can issue a new request with the redirected
URI.
Have you considered using the Library of Common Code - then you get all
this for free and you can concentrate on making a fancy client? More
information on
http://info.cern.ch/hypertext/WWW/Library/Status.html
PS: What is the current price pr. word used in a commercial on the list ;-)
-- cheers --
Henrik