Post Command Problem
dave.cragg at lacscentre.co.uk
Tue Nov 11 15:18:28 CST 2008
I'm not clear about the problem you are having.
When you say you are "receiving blocks of data", is this as a result
of a series of post commands? (one block per post)
If so, it seems some responses contain less data than expected. If you
are getting no error (the result is empty), I can think of 2 possible
1. The server is wrongly setting the Content-Length header
2. The server is not using a Content-Length header and is not using
the "chunked" transfer-encoding. This is the case with some servers.
This forces the client (Rev app) to use the closing of the connection
as a signal that the transfer has ended. I've seen cases (although not
recently) where the connection is apparently closed before all data is
(I'm sure there are other possible causes.)
I'd suspect the latter cause. But only because I've never seen the
first one occur.
I don't know how ASP.NET works. But I remember having a problem like
this with Rev CGIs on an IIS server. One thing that helped was to put
a short wait (40 milliseconds) at the end of the CGI script. This
seemed to prevent the server from closing the connection prematurely
(from the Rev client's point of view.)
If I've misunderstood your problem, sorry.
>> On Mon, Nov 10, 2008 at 1:27 PM, Dave <dave at looktowindward.com>
>>> Hi All,
>>> I'm getting a weird error when receiving data with the "post"
>>> command. I am
>>> receiving blocks of data from a server and some blocks seem to get
>>> truncated. Is this a limit on the size of a data block received
>>> with the
>>> "post" command? If there is, how can I set it bigger?
>>> Thanks a lot
>>> All the Best
More information about the use-livecode