[Seaside] Rest and POST method
Olivier Auverlot
olivier.auverlot at gmail.com
Wed Apr 6 12:53:22 UTC 2011
To infinite... and beyond !
Le 06/04/11 14:38, Philippe Marschall a écrit :
> 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
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list