You are here: Returning a "304 Not Modified" responce « PHP Programming Language « IT news, forums, messages
Returning a "304 Not Modified" responce

Posted by Hermann on 12/17/06 08:03

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.

Any idea??

 

Navigation:

[Reply to this 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

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