开发者

What is the maximum URI length in codeigniter?

开发者 https://www.devze.com 2023-02-27 10:35 出处:网络
I\'m wandering what the maximum URI length is in codeigniter, and if URI segments being used as arguments to a controller function count towards the browsers GET length limit? I think most browsers ca

I'm wandering what the maximum URI length is in codeigniter, and if URI segments being used as arguments to a controller function count towards the browsers GET length limit? I think most browsers cap there GET parameter length to about 2000?

Currently if my total URI length (inc. https://domain/folder/controller/function/argument) exceeds around 1560 characters I get a forbidden message.

'Forbidden You don't have permission to access /folder/controller/function/argument on this server'

If I trim the characters back to under around 1550~1560 it works f开发者_如何学Goine again. I realise 1500+ is alot anyway, which is why I was wandering if URI counts towards the GET limit.

Has anyone experienced this problem? Is there a solution aside from POSTing all data?

BTW: I'm using the URI protocol AUTO in the config


As far as I remember the whole URI is limited to a more or less specific length. Something is already mentioned here: What is the maximum length of a URL in different browsers?

However, it feels a little bit curious, that you require such long uris. If you append a query string of around 1000 characters length, thats already 1kB of data. In my oppinion a query string is not the right place to transport data around.

0

精彩评论

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