Gowda, Prasad wrote:
<HTML> <!-- File: redirectmeta.html --> <HEAD> <TITLE>Livelink - Redirection</TITLE> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/customapp/view/ASE_Roles.html?func=loadParentPage"> </HEAD> </HTML>
Now my question, how do I get the HttpClient to go to this redirect url and retrieve the actual content.
Prasad,
Let me explain, that normally redirects are caused by the Location HTTP header and a redirect status code.
But the redirect in your case is requested by the body of the HTTP message, that is the HTML code. HttpClient is not HTML specific and not a web browser. Therefore HttpClient does not look into the HTTP message body and can not interprete HTML. You will need to parse the HTML code and find the meta tag yourself. You could either just write a simple parser for this specific purpose or employ a full-blown HTML parser [1].
[1] ask Google: http://www.google.com/search?q=java+HTML+parser&hl=de&btnG=Search
-- _________________________________________________________________ NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch software engineer [email] [EMAIL PROTECTED] hardturmstrasse 171 [pgp id] 0x81CF3416 8005 zürich [office] +41-1-277 57 35 switzerland [fax] +41-1-277 57 12
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]