Byapass 406 error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
haora
Forum Newbie
Posts: 8
Joined: Mon Mar 27, 2006 9:39 am

Byapass 406 error

Post 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!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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
Post Reply