[Laszlo-user] Is it possible change the content-type with POST request? (Playing with Rails1.2.3)

togawa manabu togawamanabu at gmail.com
Mon Sep 3 08:02:41 PDT 2007


Hi,

I'm playing with Rails1.2.3 it contains a script "scaffold_resource"  
it generates RESTfully controller, model and view.
you can get/put/delete/post XML data with simple URL and HTTP- 
protocol. I think it perfectly match with OpenLaszlo.

Rails also has capability of XML-data to rails-params parser when  
content-type is "application/xml".
But Dataset's POST content-type is "application/x-www-form-urlencoded".

I tried

ds.setQueryType("post");
ds.setHeader("contentType", "application/xml");
ds.doRequest();

But the contentType is still "application/x-www-form-urlencoded".

Is it possible to change the content-type with POST request??
Thank you.

-manabu togawa


More information about the Laszlo-user mailing list