开发者

HTTP - 400 bad request while downloading file

开发者 https://www.devze.com 2023-01-20 14:42 出处:网络
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

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开发者_Python百科 fails. For e.g.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号