离开鱼的水 发表于 2014-3-5 16:14:46

求助,新手学delphi 这段代码 完全没看懂。求大神帮俺解释下。

Response2 := TStringStream.Create('');

idhttp1.Head(edit1.text);

idhttp1.Request.ContentType := 'application/x-www-form-urlencoded';

comeheres 发表于 2014-3-5 17:36:17

Response2 := TStringStream.Create('');//创建一个TStringStream类

idhttp1.Head(edit1.text); //请求url页面的首部,一般用于获取资源的基本信息,如下载的文件大小等

idhttp1.Request.ContentType := 'application/x-www-form-urlencoded'; //设置协议头的ContentType属性

离开鱼的水 发表于 2014-3-5 17:47:45

谢谢大神。

国产金刚葫芦娃 发表于 2018-3-8 08:00:36

Delphi各版本以及控
页: [1]
查看完整版本: 求助,新手学delphi 这段代码 完全没看懂。求大神帮俺解释下。