|Subject:||Re: Decoding - Parsing POST Data on Indy 9 HttpServer|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Wed, 22 Sep 2004|
"Mike Myers" <mik…@myacd.com> wrote in message
> procedure HTTPCommandGet(AThread: TIdPeerThread; ARequestInfo:
> TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
> ARequestInfo.PostStream.Seek(0, soFromBeginning);
You should not be accessing the Memo directly like that. The OnCommandGet
event is multi-threaded. You need to use the thread's Synchronize() method
in order to access the GUI in a thread-safe manner.
> The memo on the Server displays the POST Data exactly as I
> sent it. What I'm looking for now is a component or class to
> access the Fields and FileData in the PostStream.
TIdMultiPartFormDataStream uses MIME to encode the data. Look at
TIdMessageDecoderMIME to decode the data.
Decoding - Parsing POST Data on Indy 9 HttpServer posted by Mike Myers on Wed, 22 Sep 2004