IdHTTPWebBrokerBridge

Giganews Newsgroups
Subject: IdHTTPWebBrokerBridge
Posted by:  Heiko Goes (Heiko.Go…@corporate-planning.com)
Date: Fri, 15 Aug 2003

I am using D6 and Indy 9.0.13.

I am using the IdHTTPWebBrokerBridge to be able to support stand-alone (Indy) and ISAPI solutions (IIS).

Question:
Why is the IdHTTPWebBrokerBridge creating a WebModule for each request ?
Wouldn´t it be better (faster) to Create ONE WebModule at the start of the app and use it all the time ?

Thanks for your reply, Heiko

----------------------------------------------------------------------

P.S.: I expirienced a problem using IdHTTPWebBrokerBridge.GetDateVariable:

function TIdHTTPAppRequest.GetDateVariable(Index: Integer): TDateTime;
var
  LValue: string;
begin
  LValue := GetStringVariable(Index);
  if Length(LValue) > 0 then begin
    Result := GMTToLocalDateTime(LValue);
// HTTPAPP.ParseDate in HTTPApp from Borland is buggy
//    Result := ParseDate(LValue)
  end else begin
    Result := -1;
  end;
end;

because ParseDate doesn´t work correctly I now use GMTToLocalDateTime which does exactly the right thing.

Replies