Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : IdHTTPServer1CommandGet

www.cryer.info
Managed Newsgroup Archive

IdHTTPServer1CommandGet

Subject:IdHTTPServer1CommandGet
Posted by:"Vlad Gonchar" (vgonch..@performancesoft.com)
Date:Fri, 20 May 2005 11:58:56

Why in the point A property ARequestInfoContentLength = 38
but ARequestInfo.PostStream = nil  ???
How Can I extract content posted by a client?

procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;
                                         ARequestInfo: TIdHTTPRequestInfo;
                                         AResponseInfo:
TIdHTTPResponseInfo);
var
  aBuf: string;
begin
  SetLength( aBuf, ARequestInfo.PostStream.Size ); <=======A
  ARequestInfo.PostStream.Read( aBuf[1], ARequestInfo.PostStream.Size );

Replies:

www.cryer.info
Managed Newsgroup Archive