Page 1 of 1

Http content missing

PostPosted: September 19th, 2007, 7:46 am
by jakes
Hi

I am having a problem with file uploads. I am working on a delphi 6 program that runs on a server and can accept file uploads. The problem is that there is 8kb of the data missing within the content that is extracted from the http messages.

If the file is smaller that the length of the initial content space of the http, there is no problem but this is too small for this application. I have scanned the incoming http packets, the data is there it is just not extracted. I am parsing the raw content of the http content using TCGIRequest object. I dont know if this is a programming error or a server setting. IIS version 5 is used as the server.

PostPosted: September 19th, 2007, 8:54 am
by Kambiz
Delphi Help wrote:If the content of a message is particularly large, it is transferred in chunks. In this case, the Content property does not contain the entire message content. To read the rest of the content, use the ReadClient method.

Http content missing

PostPosted: September 19th, 2007, 9:10 am
by jakes
That is what I am doing, but in between the Content and the first bytes that I get with ReadClient, there is data missing