RE: [PHP] OT - number of chars in querystring
| From: | Darren Gamble | Date: | Tue, 26 Mar 2002 16:47:24 +0000 |
| Subject: | RE: [PHP] OT - number of chars in querystring | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90222@lists.php.net to get a copy of this message | ||
Good day,
The RFC says that there is no limit on the size of the request. But, I
remember reading that the "real world" maximum is 2048 characters, which I
believe is a hard limit on some clients.
I also recall reading that there is an RFC that suggests limiting the
request to 255 characters.
It appears that you might be submitting a lot of data. If that's the case,
you should really have your application determine the information to be
submitted and then store/create them as hidden values in a form. That way,
not only will you have no problems with length, but you don't have to worry
about the client caching it.
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-----Original Message-----
From: Erik Price [mailto:pricee@hhbrown.com]
Sent: Tuesday, March 26, 2002 9:41 AM
To: php-general@lists.php.net
Subject: [PHP] OT - number of chars in querystring
Sorry for this quick OT question --
I'm skimming thru the HTTP spec but can't find anything that defines the
character limit in GET requests. I'm writing a form that uses GET to
send data to my PHP script, but I'm afraid that if the user enters too
many characters then some will get cut off. Does anyone know the actual
limit?
If not, is there a generally-accepted maximum that is used (to assure
compatibility with most user agents and servers)?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php