Using 3.3.1 I’m sending a request with a dataset of type POST. The documentation states:

 

If the type is "POST" and there is a exactly one request parameter and it is named "lzpostbody", it will be used as the raw request body (unencoded).

 

However, using live http headers I see:

 

----------------------

POST /lps/my-apps/service/storeTopicData.jsp HTTP/1.1

Host: localhost:8080

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Cookie: JSESSIONID=05F0C8FC74260EA710E4185CB509897A

Content-type: application/x-www-form-urlencoded

Content-length: 194

 

lzpostbody=%3Crequest%3E%0A%20%20%3Ctopic%20id%3D%220003%22%3E%0A%20%20%20%20%3Cvalue%20id%3D%22fs%22%3Emfs%3C%2Fvalue%3E%0A%20%20%3C%2Ftopic%3E%0A%3C%2Frequest%3E&%5F%5Flzbc%5F%5F=1150398369406

----------------------------------

 

Notice that the post body is encoded and is not “raw” as the documentation indicates would be the case. Any ideas what’s going on here?

 

The code that makes the request looks like this:

           

        <dataset name="ds" type="http" request="false"

            querytype="post" proxied="false" timeout="15000"

            data)"

            >

            >

        />

 

        <method name="doRequest" args="postData"><![CDATA[

            var postData = “some long xml string”;

            this.ds.setQueryParam(“lzpostbody”, postData);

            this.ds.doRequest();

        ]]></method>

 

 

Maynard Demmon - [EMAIL PROTECTED]

Senior Developer - Laszlo Studios

 

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to