Reply to Re: Returning a "304 Not Modified" responce

Your name:

Reply:


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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация