David Lewis wrote:
> I'm putting together a basic web server for a small application to
> communicate with.
> 
> I have the GET event working as intended, but am having difficulty
> with 
> the POST event.
> 
> The event fires, but I can't seem to work out where to find the POST
> data... 
> 
> I tried: ((THttpConnection *)Client)->ReceiveStr( ) and
> ((THttpConnection *)Client)->Params but both appear to be empty.
> 
> Where would I find the actual posted data?

Have a look at the Delphi OverbyteIcsWebServ1 demo, it's Delphi however
you get the idea for sure.
On event OnPostDocument do some checks and prepare or allocate 
your receive buffer. OnPostedData is the event to Receive() data chunks
and check for correct data length etc..

-- 
Arno Garrels 



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to