Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 17720, Fix for the ContentFields problem with POST requests

by Udo Giacomozzi Email: Anonymous

Workaround for the problem with chunked POST requests on slow connections. Use this if you are handling POST requests with CGI applications.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Kylix, Version 1.0  to 1.0 105 downloads
Copyright: No significant restrictions

Size: 3,770 bytes
Updated on Sat, 23 Mar 2002 11:38:30 GMT
Originally uploaded on Sat, 23 Mar 2002 11:32:39 GMT
MD5 Hash: 0694B620EC87148E861B002843A55545

    Explore the files in this upload

At least in the first version of Kylix Server Developer there is a
problem with medium- to large-sized POST requests over slow
connections. The HTTP protocol supports a "chunked" transmission of
the content. This means that the content is transmitted bit by bit
(usually some hundred bytes at a time) and each time a "chunk" is
transmitted that also contains a chunk header with the size of the
chunk. For more information please refer the HTTP protocol.

The CGI programmer is not involved with this task as the web server
will only pass the content data to the CGI program without any chunk
information. However the data is usually streamed to the CGI program
at the same speed it arives. On slow connections there can be some
milliseconds delay or even more.

Unfortunately TWebRequest tries only once to read the content data
from the web server and then continues without to check if all data
could be read. Because of the reason descibed above this can be a

The result is that the exception EConvertError is raised because a
URL-encoded char has not been truncated or that at least some content
fields are beind missed.

I noticed this problem with Kylix 1.0 server developer, don't know if
it still exists in newer versions.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04