[AWS] Reading the body of a POST as a String

Phil Costin philcostin at hotmail.com
Fri Jun 3 19:09:36 CEST 2011


> > I have tried the above but actually, AWS.Response.Message_Body accepts a
> > parameter of type AWS.Response.Data - what I'm trying to do is to read
> > the body which is sent to the server by the client - as an (Unbounded)
> > String during the execution of the dispatch handler. The signature is:
> >
> > overriding function Dispatch (Handler : in RequestHandler; Request in
> > AWS.Status.Data);
> 
> I see. You need to use AWS.Status.Binary_Data to get the content of the 
> body. You can then translate it to a string using Translator.To_String.
> 
> The length of the body is AWS.Status.Content_Length.
> 
> Pascal.

Thanks for your help Pascal!
Phil 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/aws/attachments/20110603/07a7c42c/attachment.htm 


More information about the AWS mailing list