I am trying to retrieve a page which uses js and database to load. The loading takes about 2 to 3 mins. I am able to get the page where it would show "Please wait 2 to 3 mins for the page to be loaded." But not able to retrieve the page after it is loaded.
I have already tried the following:
1.) Using mirror method in the Mechanize. But the response content is not decoded. Hence the file is gibberish. (Also tried to write a similar method as mirror method which would decode the response content but that also doesnt work. The New content is not loaded.)
2.) Tried to add a request header 'if-modified-since'. But still the time is same and the new content is not fetched.
Any pointers or suggestions would really be helpful.
TIA :)
Example :
Above code is not tested, but should work.
Enjoy.