| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付赛孚耐:软件保护加密专家
身份认证令牌USB KEY   
共有 528 人关注过本帖
标题:idHTTP 向网站用HTTP GET提交数据是用idHTTP.Get(); 还是用idHTTP.Post();
收藏  订阅  推荐  打印 
bccnme
Rank: 1
等级:新手上路
帖子:16
积分:260
注册:2007-5-5
idHTTP 向网站用HTTP GET提交数据是用idHTTP.Get(); 还是用idHTTP.Post();

我看在indy9 help里是这样解释的:

Get :
Retrieves an HTTP resource.

procedure Get(AURL: string; const AResponseContent: TStream); overload;
function Get(AURL: string): string; overload;

Get is an overloaded method used to retrieve the file or data for the resource specified in AURL.

Post:
Send HTTP data to a web server or CGI program.

function Post(AURL: string; const ASource: TStrings): string; overload;
function Post(AURL: string; const ASource: TStream): string; overload;
function Post(AURL: string; const ASource: TIdMultiPartFormDataStream): string; overload;
procedure Post(AURL: string; const ASource: TStrings; const AResponseContent: TStream); overload;
procedure Post(AURL: string; const ASource: TStream; const AResponseContent: TStream); overload;
procedure Post(AURL: string; const ASource: TIdMultiPartFormDataStream; AResponseContent: TStream); overload;

Post is an overloaded method in TIdHTTP that is used to send data specified in ASource to the resource location in AURL。

所以有些疑惑,indy里的get post和asp里的get post是对应的吗?
搜索更多相关主题的帖子: Get  GET  idHTTP  Post  
2007-5-19 14:07
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.059511 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved