PDA

View Full Version : HTTP request body size limit


productengine
09-04-2003, 07:52 AM
Hi,

I have some problem with sending requests from laszlo to server. My laszlo client stores large XML data and sends it to server using POST method. But sometimes doRequest() doesn't work.
I've read on forum that when request body exceeds some limit, data will not be sent. So what is the value of limit and can I regulate it?

Is there some other way to transmit large XML data to my back-end?

antun
09-04-2003, 12:27 PM
This is a known issue - right now you can POST from the LPS, but the request from the client to the LPS (the first leg of the journey) is a GET request.

The only way I could suggest (which might sound painful) would be to have the client break up the request into a number of smaller ones if that's possible. Then have a script on the server reconstitute the request.

Is there a way you could change the app, so less text needs to be sent to the server?

The limit is imposed by the browser, not the Flash client or the LPS.

-Antun

k-billy
09-09-2003, 12:21 PM
Hi,

we had the exact same problem; we needed to send large chunks of xml data, and at the moment, Laszlo can only do this on the query string. We resolved it temporarily by doing the following:

1. Using a browser which doesn't restrict the length of the query string (i.e. Mozilla rather than IE).

2. You may also need to adjust the size of the query string permitted by your Application server. We found that our app server was cutting off the query string. In JBoss, you can edit the servlet container's SocketListener buffer size in the appropriate config.xml file:

<Set name='BufferSize'>16534</Set>

In our case, we are developing with the servlet container only (in this case, Jetty), so we needed to modify the
org.mortbay.http.HttpRequest._maxLineLength
property programatically.

I hope this helps!