Hi all,
I was hoping somebody could help me with my web server problem.
I am using the HTTPApp unit in my server application to develope html pages, send/recieve data between server and client. I set the Response (TWebResponse) properties inorder for the client user to download attachments etc.
I assign the Response.Content to a string which holds an xml file and then set the Response.ContentType to 'text/csv' and the Response.Customheaders to let the user download the response.Contents as a csv file in their local drive. This works if the Response.Content does not hold a very large string of data.
My problem is that when assigning the Response.Content to be a very large string of data it comes up as 'HTTP 500 internal server error' even though the Response.content holds this large string. I have tried changing the ContentType to 'application/octet-stream' and it still dosent work.
Does anybody have any ideas on how i can over come this issue?
Many thanks
Vinzmen
I was hoping somebody could help me with my web server problem.
I am using the HTTPApp unit in my server application to develope html pages, send/recieve data between server and client. I set the Response (TWebResponse) properties inorder for the client user to download attachments etc.
I assign the Response.Content to a string which holds an xml file and then set the Response.ContentType to 'text/csv' and the Response.Customheaders to let the user download the response.Contents as a csv file in their local drive. This works if the Response.Content does not hold a very large string of data.
My problem is that when assigning the Response.Content to be a very large string of data it comes up as 'HTTP 500 internal server error' even though the Response.content holds this large string. I have tried changing the ContentType to 'application/octet-stream' and it still dosent work.
Does anybody have any ideas on how i can over come this issue?
Many thanks
Vinzmen