In a message dated 1/28/2006 4:41:26 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:
> 1) Connect to the URL: _http://www.tsp.gov/account/index.html_ > (http://www.tsp.gov/account/index.html) > > 2) On the web page given in 1) there is a hyperlink that I click, which > takes me to the logon page, > > _https://tspweb2.tspsec.tsp.gov/login2.htm_ > (https://tspweb2.tspsec.tsp.gov/login2.htm) > > How do I simulate 1) and 2) with HttpClient? 1. Send a request to fetch http://www.tsp.gov/account/index.html 2. Send a request to fetch https://tspweb2.tspsec.tsp.gov/login2.htm The website will not allow me to go to page 2 without first going to page 1. If I try to go directly to page 2 or do the two "fetches" that you suggest (using GetMethod()), I get a Security Error - "Invalid linkage." Does this mean it is impossible to use a Java Application to get to the "login2" page and that I must use a browser? Or is there still a way to simulate "going to page 2 via the link on page 1" in my Java application?
