intrawebIW当作REST 服务端

intraweb15

该版本支持HTTPS.SYS通信。

IW当作REST 服务端使用:

procedure TIWServerController.IWServerControllerBaseExecuteRequest(
const Url: string; Request: THttpRequest; aReply: THttpReply;
var Handled: Boolean);
var
s:string;
begin
//if Request.HttpMethod= hmGet then begin
// s:= Request.Params.Values['sql'];
// s:=Request.PathInfo;
aReply.WriteString('{"f1:","你好,世界!"}');
aReply.SendStream();
//end;
end;

原文地址:https://www.cnblogs.com/hnxxcxg/p/9490245.html