--- James E Hicks III <[EMAIL PROTECTED]> wrote: > I've seen the post_max_size in the php.ini. Is there a corresponding > get_max_size? I couldn't find anything about this anywhere in the > php.ini or apache.conf. > > I want to send a lot of information via > header("Location: http//server.com/program.php?val[]=1") > > Is there any limit on size of GET method?
I assume you mean to ask whether there is a limit on the size of the URL, and the answer is yes. However, this depends entirely on the Web server and Web browser involved in a particular transaction. It is not something that is defined in the specification. For example, if your Web server can handle URLs up to 2048 characters in length, and a user's Web browser can only handle URLs up to 256 characters in length, that particular user will have trouble when you use URLs over 256 characters, while other users may be fine. As far as recommendations, I can't recall where I read this (I believe it was on the W3C Web site somewhere), but you can follow these rough guidelines: < 256 is very reliably handled by practically every Web agent <= 1024 is reliably handled by most modern Web agents > 1024 is not generally recommended Of course, the total length of the URL is greater than the query string alone, so you'll have to keep that in mind if you're splitting hairs. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php