如何取出这样的网页的内容,二百分答谢!(200分)

  • 主题发起人 主题发起人 一点半
  • 开始时间 开始时间

一点半

Unregistered / Unconfirmed
GUEST, unregistred user!
http://expert.csdn.net/Expert/TopicView1.asp?id=2813118
点击后指向http://expert.csdn.net/Expert/topic/2813/2813118.xml?temp=.8777277
如何根据第一个网址取出第二个网址的内容,保存到memo?
二百分答谢
 
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP;

type
TForm1 = class(TForm)
IdHTTP1: TIdHTTP;
Memo1: TMemo;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
public
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
IdHTTP1.HandleRedirects := True;
Memo1.Text := IdHTTP1.Get('http://expert.csdn.net/Expert/TopicView1.asp?id=2813118');
end;

end.
 
接受答案了.
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部