Hi Nishal
There was a similar problem with IIS6 (XP and Windows Server 2003) and Delphi6, which some wonderful person solved with a fix to SysUtils.pas. I am now using Turbo Delphi, and have just tried the Delphi 6 fix which caused Turbo Delphi to crash with 'Error in recursing to variants'. This is totally beyond me, as I am just a simple application programmer, and have never delved into the depths of Delphi source code. I am currently tempted to go back to Delphi 6 (plus the fix to sysutils.pas) as I know it works.
The clue (I think) is in the message: "The headers it did return are '' ", and the kind suggestion about the length of StdInput by the person above.
Like you, I have a very simple test program, with only one statement
Response.content := '<html>Hello from Rona</html>';
I think maybe Turbo Delphi is not putting the length of this string into the HTTP header properly, but I am not sure if you can do this easily yourself. It may be something to do with strings and PChars, which often cause mysterious problems. Which version of Delphi are you using?
Regards, and waiting hopefully that someone out there has solved this!!!
Rona