[Seaside] Rest and POST method
olivier.auverlot at gmail.com
Mon Apr 4 08:34:16 UTC 2011
Philippe, thank for your response.
ok, that works for the content type application/x-www-form-urlencodedbut
I need to receive xml data. With another content type like text/plain or
text/xml, the data seems to be not parsed. postFields or rawBody are empty.
self requestContext request postFields
> 2011/4/4 Olivier Auverlot<olivier.auverlot at gmail.com>:
>> I continu my experiments with seaside-rest and I have a new problem. I can
>> post XML data to the seaside server with the post method. I can detect the
>> arrival of the data with the postXML event method.
>> "I receive XML data with the POST method"
>> <Consumes: 'text/xml'>
>> <Path: '/postxml'>
>> Transcript show: 'XML data detected'.
>> But... how to read the content of the request ?
> Yeah right, at the moment you can only inject GET fields and not POST
> fields. So you have to access them through
> self requestContext request postFields
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside