This site looks great to me, so I have registered allready! :-)
My problem is:
I want to get a html source of web document, but ONLY this. Using WebBrowser causes me to wait until the document will be diplayed. And I don't need it to be displayed.
In Delphi5 I use this function:
function TForm1.page(url: string): string;
Flags : OLEVariant;
Flags := 14; // 2+4+8 = do not use cache and history
until not WebBrowser1.Busy;
Doc := WebBrowser1.Document AS IHTMLDocument2;
if Doc <> nil then
page := (Doc.Body AS IHtmlElement).innerHTML;
so I have a source of document using:
source := page(http://www.some.site.on.the.net'
I am sure there is some tricky way to obtain only a source, without displaying the whole www site.
Maybe I can use somehow RequestDoc method?
Anyway - I have no idea how to do this.
Please, can you help me?