Re: [twsocket] Support for HEAD in HTTP server component

2012-02-10 Thread Tobias Rapp
Arno Garrels wrote: Feb 07, 2012 V7.44 Arno - The HEAD method *MUST NOT* return a message-body in the response. Do not skip compression on HEAD requests, we need to send the correct size. Method SendDocument simplified and added two overloads. AnswerStreamAcceptRange got an overload too.

Re: [twsocket] Support for HEAD in HTTP server component

2012-02-08 Thread Arno Garrels
Tobias Rapp wrote: Using a variable on object level seems like a better approach than my proposal of adding a SendType flag to dozen of functions :-) However the patch is buggy, sorry, **don't use it as is**, will check in a fixed one tonight or tomorrow. Found another bug in

Re: [twsocket] Support for HEAD in HTTP server component

2012-02-07 Thread Tobias Rapp
I wrote: [...] As far as I understand the specs no response body should be returned for HEAD but it seems that THttpConnection does send response bodies in procedure ProcessPost() in case of 400/404/etc. answers. ^---^ I wanted to say ProcessHead() here. Regards,

Re: [twsocket] Support for HEAD in HTTP server component

2012-02-07 Thread Arno Garrels
Tobias Rapp wrote: Hi, I am currently debugging some problems in my application using the THttpServer/THttpConnection components regarding the support for HEAD requests. As far as I understand the specs no response body should be returned for HEAD but it seems that THttpConnection does send