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

Henry Minsky henry.minsky at gmail.com
Mon Sep 3 16:59:12 PDT 2007


Can you tell me which version of openlaszlo you're using, which
runtime (SWF or DHTML),and if  are you running SOLO or proxied?

I need to look at the data loader for the conditions you are using,
and see if the content-type can be modified for POST requests.

Thanks,

Henry


On 9/3/07, togawa manabu <togawamanabu at gmail.com> wrote:
> 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
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-user mailing list