Vote UpVote

Fetching a web page with Delphi

Yanniel's notes – This function fetches the HTML content of a given web page. It takes the page's URL as parameter and returns the corresponding HTML text. The name CURL comes from the PHP Client URL Library that can be used (among other things) for the same purpose..................implementationuses  IdHTTP;function Curl(aURL: string): string;const  cUSER_AGENT = 'Mozilla/4.0 (MSIE 6.0; Windows NT 5.1)';var  IdHTTP: TIdHTTP;  Stream: TStringStream;begin  Result := '';  IdHTTP := TIdHTTP.Create(nil);  Stream := TStringStream.Create;  try    ...
Favorite? Off-Topic? Yanniel @ 2011-07-20 14:00


Visits: 43
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)