Loading HTML page into a string variable

They have: 1 posts

Joined: Jul 2005

Hi.

I need help with javascript embedded into HTML. I want to create a HTML page (with Java) which loads another HTML page from a given URL into a string variable as pure text. Then I want to parse the page content using indexOf methods and finally to display only a short string found between two known substrings. The problem is that the external page uses cookies and the text I want to look for is loaded from cookies (the text itself is well visible in the browser window; in the HTML code it is a simple text outside the HTML tags). Is it possible to do this with Java? Thanks.

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

probably not

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.