WebBrowser的小问题(50分)

L

lyx

Unregistered / Unconfirmed
GUEST, unregistred user!
我想通过WebBrowser或其他的方式将指定的URL的内容Get到一个Stream中去,但是无从下手,
烦请各位大虾不吝赐教。简单的思路也行。
 
//用了indy控件,
IdHTTP1: TIdHTTP;
...
procedure TForm1.Button1Click(Sender: TObject);
var
tmpStream:TFileStream;
begin
tmpStream:=TFileStream.Create('c:/get.dat',fmCreate);
try
idhttp1.Get('http://www.xxx.com/',tmpStream);
finally
tmpStream.Free;
end;
end;
 
顶部