I am using Indy10. My server is processing a form post. ARequestInfo.FormParams properly contains the unparsed form parameters. But ARequestInfo.Params.count is 0. Is there a way I can have ARequestInfo.Params have the parsed form parameters? Or is there a way to parse ARequestInfo.FormParams?
It seems I have to write my own parsing routine when this should already be encapsulated in the object. Or perhaps I am missing a method.
Update Doing some more digging I have found when doing a post within our LAN everything works ok. But when the post is done from a browser outside of our LAN it does not.
Try to set the
ParseParamsproperty at yourTIdHTTPServer.Or you can make a descendant of the
TIdHTTPRequestInfoclass for accessing the protected method namedDecodeAndSetParamsto parse the parameters by yourself.Here is the example.