delphi datasnap 服务器 接受 Post Get 方式的参数

来源:互联网 发布:2014年网络歌曲排行榜 编辑:程序博客网 时间:2024/05/22 14:11

例如 我需要 调用这个地址 并传递参数

http://localhost:8080/datasnap/rest/TServerMethods1/EchoString?aaa=abc

在 delphi 调用


function TServerMethods1.EchoString(Value: string): string;
begin
  Result := GetInvocationMetadata.QueryParams.Text ;//取得参数
end;


补充 我用的是Xe7,



1 0
原创粉丝点击