简体   繁体   中英

HTTP - 400 bad request while downloading file

After further investigation on basis of previous question url encode/decode is working properly. Issue is something with Apache server (might be) which serves file download request Specially if my file name ends with % sign, it fails. For eg

Original File name:

204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pdf 



Url in browser after clicking on download link:

http://pdf/204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1%2C2%25.pdf

This returns 400 error with bad request. I am using LAMP with Kohana 3 framework.

Please guide.

Thanks is advance.

You missed a Host in the address. If it's only tipping fault the server may does not have permissions to access the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM