Page 1 of 1

Byapass 406 error

Posted: Thu Jul 06, 2006 11:43 am
by haora
Hi all, I'm using Apache 1.3, and I want to make sure the user agent, gets the file it wants, no matter if the accept-header it sends says it only accepts text/plain files.....

How can I do this?

Can it be done?

Thanks in advance!

Posted: Wed Jul 12, 2006 12:34 am
by Benjamin
Well you can over-ride the Content-type. Have a look in the manual for samples on how to send your own headers before content..

http://www.php.net/manual/en/function.header.php