Delphi - IndyHttpServer服务器接收数据最大值设置!!

MaxLineLength参数决定当前接收数据的最大值,如果当前接收数据比较大,大于:16*1024,那么可以参照下面代码设置:

procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;

  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);

begin

  AContext.Connection.IOHandler.MaxLineLength:=1024*1000;

end;

   

参考:
https://forum.lazarus.freepascal.org/index.php?topic=29857.0

 

posted on 2021-02-01 17:05  sunylat  阅读(406)  评论(0编辑  收藏  举报