hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ed cole <edcole1...@yahoo.com>
Subject Re: Redirect Question
Date Mon, 17 May 2004 23:11:23 GMT
Thanks for the reply, unfortunately I can't see the Javascript content since it's loaded
as a JavaScript source file.  Do I have any other options.

Chris Lamprecht <clamprecht@elitemail.org> wrote:
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:


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.


----- Original Message ----- 
From: "ed cole" 
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: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message