• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

Saving web-content with WebBrowser via cache... ?

Hi !
I'm working with Delphi 5 Enterprise (engl.version), WinNT 4.0 and Win98se.
I've built a small webbrowser (with your help ;-) ...
Now i've the idea to read the web-content offline. So i begin with a downloadbutton and...
----------------
function DownloadFile(SourceFile, DestFile: string): Boolean;
begin
  try
     Result := UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil) = 0;
    except
     Result := False;
  end;
end;
-----------------
If the web-content is built via script (...asp?123...) this isn't a solution. Now i've the idea that the whole webcontent should be in my browser-cache ... The best: Without seeing it before ;-)
Then i can read all with
WebBrowser1.Offline := True ...
How can i do this?
Are there any solutions, tips or tricks?
Thanks a lot!

Best regards,
Ingo

BTW: 110 points is all i have ;-)
0
Ogni
Asked:
Ogni
  • 3
  • 2
1 Solution
 
Eddie ShipmanAll-around developerCommented:
You can get the full HTML source of the URL, even if it
is created by scripting(ASP,JSP) by using the technique at
this link:

http://members.home.com/hfournier/webbrowser.htm#advanced8
0
 
OgniAuthor Commented:
Hi Eddie,
thanks a lot... i'll still wait a bit... It's a good answer but... Perhaps i still get an answer 'cause of "automatic saving to cache" or so...?!
If there comes nothing you get the points ;-)
Best regards,
Ingo
0
 
Eddie ShipmanAll-around developerCommented:
It is better to get it straight from the webbrowser
instead of from the cache. The cache may not contain the
latest version of the document due to the user's internet
options settings.


0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
antenorCommented:
hello EdieShipman !

I had a same problem ... and a link
http://members.home.com/hfournier/webbrowser.htm#advanced8 

do not work ...  :(

do you help me?

Tanks
0
 
Eddie ShipmanAll-around developerCommented:
Henri has since changed his site to:
http://www.members.shaw.ca/iedelphi/

0
 
antenorCommented:
ok EddieShipman.

Tank U.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now