What do you want to be a scraping of the page of the program, test,
IdHTTP - & gt; ProtocolVersion=pv1_1;
IdHTTP - & gt; Request - & gt; The Accept="text/HTML, application/XHTML + XML, */*";
IdHTTP - & gt; Request - & gt; AcceptLanguage="useful - CN";
IdHTTP - & gt; Request - & gt; UserAgent="Mozilla/5.0 (Windows NT 6.1; Trident/7.0; BOIE9; ZHCN; The rv: 11.0) like Gecko ";
IdHTTP - & gt; Request - & gt; AcceptEncoding="gzip, deflate";
IdHTTP - & gt; Request - & gt; The Host="www.w3school.com.cn";
IdHTTP - & gt; Request - & gt; CustomHeaders - & gt; Values/DNT "=" 1 ";
IdHTTP - & gt; Request - & gt; The Connection="Keep - the Alive";
IdHTTP - & gt; Get (" http://www.w3school.com.cn/");
Memo1 - & gt; Lines - & gt; Add (IdHTTP - & gt; Request - & gt; RawHeaders - & gt; The Text);
Memo1 - & gt; Lines - & gt; Add (" ");
Memo1 - & gt; Lines - & gt; Add (IdHTTP - & gt; The ResponseText);
Memo1 - & gt; Lines - & gt; Add (IdHTTP - & gt; The Response - & gt; RawHeaders - & gt; The Text);
Fiddler has shown the information returned,
The next show return content how to write? ! Genuflect is begged!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CodePudding user response:
Scraping of the page content, the following sentence is enough
Memo1 - & gt; Lines - & gt; Text=IdHTTP1 - & gt; Get (" http://www.w3school.com.cn ");
CodePudding user response:
Delphi IDHttp basic usage ofhttps://blog.csdn.net/chinajobs/article/details/51442308
CodePudding user response:
To www.baidu.com directly anomalies,