[Seaside] Rest and POST method

Philippe Marschall philippe.marschall at gmail.com
Wed Apr 6 12:38:05 UTC 2011


2011/4/6 Olivier Auverlot <olivier.auverlot at gmail.com>:
> I have modified the code with the following modifications :
>
> HttpRequest>>#rawPostFields
>    ^self propertyAt: #rawPostFields ifAbsentPut: [
>        (self isPostRequest) ifTrue: [
>            stream next: self contentLength
>        ] ifFalse: [
>            ''
>        ].
>    ]
>
> Now, it seems ok. I can send GET or POST requests and send XML data. For
> read this data, I use the rawBody propertie.
>
> For example:
>
> postXML
> <POST>
> <Consumes: 'text/xml'>
> <Path: '/postxml'>
>    Transcript show: self requestContext request rawBody.
>
> Now, I must find a cool tool for parsing XML...

Magritte-XML ;-)

Cheers
Philippe


More information about the seaside mailing list