Lukas, On 20 Nov 2011, at 18:45, Lukas Renggli wrote:
Hi Sven,
Does #requestBodyFor: in the Zinc server adaptor for Seaside work?
Instead of a String I keep on getting strange things back :-)
Given the current implementation: requestBodyFor: aZincRequest ^ aZincRequest entity you get a ZnEntity subclass back, not a String which WARequest>>#setBody: seems to expect. As you certainly known, many different kinds of things could be uploaded in a POST, depending on the mime type, some of the important ones are in the subclasses of ZnEntity. I don't think a general conversion to String is possible, unless the idea is that that String should contain the byte representation of what got posted. The #contents method does try to return something useful (sometimes higher level Smalltalk objects). BTW, what is the difference between #requestBodyFor: and #requestFieldsFor: ? Summary: if you known what should be passed in the different cases, I might be able to tell you how to get to it. Sven PS: which Seaside tests touch this ?