Maximum length of URI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Maximum length of URI (/showthread.php?tid=40884) |
Maximum length of URI - El Forum - 04-21-2011 [eluser]cjke[/eluser] Hi, I'm wandering what the maximum URI length is, 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 fine 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? Do I need to rely on weird hidden forms so I can post the data forward? BTW: I'm using the URI protocol AUTO in the config Maximum length of URI - El Forum - 04-21-2011 [eluser]InsiteFX[/eluser] 2048 but some browsers can go over that, if you stick to 2000 it should work in all the major browsers InsiteFX Maximum length of URI - El Forum - 04-21-2011 [eluser]cjke[/eluser] Would the forbidden message be because of this limit? It seems more like a server issue? Maximum length of URI - El Forum - 04-21-2011 [eluser]Unknown[/eluser] Is there a way to extend this limit? Where is this limit imposed in the code? I'd like to find it and change it. |