• Post Reply Bookmark Topic Watch Topic
  • New Topic

webpage reading problem  RSS feed

 
Geoffrey Shean Joan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I used the below code to read from a website... That html page contain some dynamically populated figures... Yesterday when i read the page i got those exact values... but today though the actual website content changed, I am getting yesterday's output.... seems like it's coming from some cached data.... What could be wrong....???

below is the code which I used....




Thanks for any help.

[Edit: removed use of all uppercase. Please read: KeepItDown]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll be much better off using a library like HtmlUnit for this. It has an API that lets you access page elements in a structured way that makes working with the HTML vastly easier than rolling your own.
 
Geoffrey Shean Joan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Welcome to the Ranch.

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

I've gone ahead and added the code tags for you. See how much easier the code is to read?


Thank you so much for your consideration to a newbie.... will take care of the code tags further..
 
Geoffrey Shean Joan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks... HtmlUnit is new to me.. will check it out... But is there any possible tweak to the code above so that it fetches the latest and relevant http response data as would a browser do..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!