|
Posted by seaside on 12/17/06 15:41
Hermann schrieb:
> The standard says "The 304 response MUST NOT contain a message-body,
> and thus is always terminated by the first empty line after the header
> fields"
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>
> So in my PHP script I do the time calculations and then I simply do:
>
> header('HTTP/1.1 304 Not Modified') ;
> exit ;
>
> But when I retrieve the responce as raw text I see that the responce
> does have a body. It is just 8 bytes of binary data and I dont know how
> to prevent that from being sent after the headers.
Do you have space, tabs or cr/lf somewhere before <? or after ?>. This
might get posted too.
In general, your header statement gets bigger, since it gets wrapped
inside a valid HTTP header.
I'm sure, you know.
Could you post the source of the header?
Navigation:
[Reply to this message]
|