[AWS] Reading the body of a POST as a String
Pascal Obry
pascal at obry.net
Fri Jun 3 18:53:28 CEST 2011
Hi Phil,
> 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.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
More information about the AWS
mailing list