This is a bug in the SOLO implementation of  POST requests.  Bug http://www.openlaszlo.org/jira/browse/LPP-2568
describes this.

I'm actually working on a fix for this for an upcoming Legals release.



On 8/30/06, Matthew Cloy <[EMAIL PROTECTED]> wrote:
Hi,

I'm trying to POST raw data in the body of the request, but I'm having
trouble... my test code is shown below.
(I know it's posting to the lzx file, but it doesn't matter... I just
use Fiddler to inspect the sent request)

The app is running SOLO on 3.2cr2

<canvas proxied="false">
    <script>
        var test = new LzDataset;
        test.setSrc(" http://localhost:8080/lps-3.2cr2/src/Test/test.lzx");
        test.setQueryType("POST");
        test.setQueryParam('lzpostbody',"One+Two=three");
        test.doRequest();
    </script>
</canvas>

Problem is, that lzpostbody is not working.

The raw request that is sent is shown below, and as you can see, the
body is not the "raw unencoded" data I set as the lzpostbody.

---------
POST /lps-3.2cr2/src/Test/test.lzx HTTP/1.1
Accept: */*
Referer:
http://localhost:8080/lps-3.2cr2/src/Test/test.lzx?lzt=swf&debug=true&lzr=swf8
x-flash-version: 9,0,16,0
Content-Type: application/x-www-form-urlencoded
Content-Length: 59
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: localhost:8080
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=3E027CF1B230C94D339570A79E692273; txtMainTab=Timeline

lzpostbody=One%2BTwo%3Dthree&%5F%5Flzbc%5F%5F=1156928956658
---------

I'm wondering if it has something to do with the automatically added
parameter __lzbc__?
Any ideas?
Thanks.
Matt.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user



--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

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

Reply via email to