Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : Converting HTTPServer Indy 9 to Indy 10
| Subject: | Converting HTTPServer Indy 9 to Indy 10 |
| Posted by: | "Trina Jacobson" (trin..@counterworks.com) |
| Date: | Wed, 4 May 2005 08:54:03 |
I'm trying to convert an application that uses IDHTTPserver from Indy 9 to
Indy 10 (Delphi 7). I found the article 'Upgrading to Indy 10' from the
Borland Conference and followed the very helpful instructions to make the
necessary changes.
The program compiles and runs but ARequestInfo.Unparsedparams, which I
previously used to access the incoming XML, is returning blank now.
AResponseInfo.ContentText seems to be working to send the response back.
The code is something like this:
procedure TfmStockCheck.HTTPServerCommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
....
with aContext.Connection.IOhandler do
begin
Try
ProcessHTTPRequest(ARequestInfo.Unparsedparams,aContext);
Finally
....
End;
end;
end;
procedure TfmStockCheck.ProcessHTTPRequest(REcXMLString : String; aContext :
tidContext);
begin
//process RecXMLString; it appears aContext is no longer used in this
procedure
end;
Thanks for any help.
Trina J