> Hmm... How do i download a file and save it on disk? Got the
> RcvdStream and... what? How do i save it to file? I thought that
> stream.savetofile would work but there is no such a thing...

Just assign a TFileStream to RcvdStream and you have a file. That's the beauty 
of TStream and
derived classes.

Something like (just typing out of my head, not tested):

HttpCli1.URL := 'http://www.overbyte.be';
HttpCli1.RcvdStream := TFileStream.Create('overbyte.html', fmCreate);
HttpCli1.Get;
HttpCli1.RcvdStream.Free;
HttpCli1.RcvdStream := nil;

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to