Hi Ed,
     It depends on the content of the page returned.  You can look at the
actual content returned (which should contain the JavaScript), and parse out
the redirect location.  It may look something like this:

self.location.replace("/app/self-registration");

Then you can do a GET or POST (using HttpClient) to the redirect URL (which
may be relative, as in the example above).  Hope this helps.

-Chris

----- Original Message ----- 
From: "ed cole" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 17, 2004 2:20 PM
Subject: Redirect Question


> Hi
>    I have a problem, I'm using HttpClient to connect to a website.  The
> intial page contains a redirect, I think through JavaScript, which spawns
a new
> browser.  I need to get to the ne wbrowser to login.  The initial
HttpClient invocation return a status code 200, I don't even see the
> 3xx redirect code never mind the Response's Location value.
>
>    Any ideas?
>
>
>                                           Thanks
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to