const Url = ‘http://del.cnblogs.com‘;
procedure Tidhttptestform.Button1Click(Sender: TObject);
var
stream:TStringStream;
idHttpObj:TIdHTTP;
begin
stream := TStringStream.Create(‘‘);
idHttpObj := TIdHTTP.Create(nil);
idHttpObj.Get(Url, stream);
idHttpObj.Free;
//乱码转化
//Memo1.Lines.Text := UTF8Decode(stream.DataString);
ShowMessage(UTF8Decode(stream.DataString));
stream.Free;
end;