[Seaside] Rest and POST method

Olivier Auverlot olivier.auverlot at gmail.com
Tue Apr 5 14:00:02 UTC 2011

I added content-length to the HTTP header but with no effect.

POST /MonAppRest/postxml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 75

<?xml version="1.0" encoding="UTF-8"?>

Olivier ;-)
> 2011/4/5 Olivier Auverlot<olivier.auverlot at gmail.com>:
>> Le 05/04/11 09:55, Philippe Marschall a écrit :
>>> It should already work;-)
>>> Can you set a break point in WAComancheRequestConverter>>
>>> #requestBodyFor: and check why the decoding doesn't happen? It could
>>> be because the Content-Length is missing in that case.
>> Ok. It seem that the request is recognized as a POST method but
>> HttpRequest>>#rawPostContents returns '' when the datatype is "text/xml".
> Why? Does it check Content-Length?
> 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