如何从TIdHTTPWebBrokerBridge获得完整响应?

时间:2017-07-11 14:29:51

标签: delphi indy idhttp

我需要在我的webservice中存储请求的响应。我可以这样捕获请求:

procedure TMyIdHTTPWebBrokerBridge.DoCommandGet(AThread: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
  MyLog.ResquetInfo := ARequestInfo.PostStream; 

  //When I try this I get an access violation
  MyLog.ResponseInfo := AResponseInfo.ContentStream;
end;

是否存在可以捕获完整响应的任何其他事件?

0 个答案:

没有答案
相关问题