Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   406 Not Acceptable because of file name? (http://www.go4expert.com/forums/406-acceptable-file-t5256/)

pu132 14Jul2007 05:02

406 Not Acceptable because of file name?
 
Okay, so I've tried this on two different servers (on the same host, though). Both use Apache 1.3.34 on Linux with cPanel. First off, I know the name is bad anyway, but I am curious to know the problem here.

I have an image named "CP BBall Seal.jpg" on the server. Every time I try to access the file I get a 406, using Firefox, IE, and PHP readfile. When I rename the file to "BP BBall Seal.jpg" or "DP BBall Seal.jpg" it works as it should. I also get a 406 if I name the file "CP test.jpg".

Is there something special about files that start with "CP " in Apache? Or is there some weird setting my host put on the server? Thanks.

pradeep 14Jul2007 10:49

Re: 406 Not Acceptable because of file name?
 
cp in *nix system is a command, i.e. copy command. That may be a problem, I am not sure though try renaming your file to "MV BBall Seal.jpg". mv is also a command.

pu132 15Jul2007 00:19

Re: 406 Not Acceptable because of file name?
 
Interesting idea. But "MV " works just fine.

pradeep 16Jul2007 10:09

Re: 406 Not Acceptable because of file name?
 
Hmmm...I tried googling it but didn't find any clue!


All times are GMT +5.5. The time now is 12:10.