363,925 Members | 2621 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

_GET parameter size limit

gizz
P: n/a
gizz
Hi,

I'd like to know whether there is a limit in the number of characters of a
$_GET parameter ?

Thanks in advance !


Jun 7 '07 #1
Share this Question
Share on Google+
6 Replies


purcaholic
P: n/a
purcaholic
On 7 Jun., 09:14, "gizz" <g...@nospam.orgwrote:
Hi,
>
I'd like to know whether there is a limit in the number of characters of a
$_GET parameter ?
>
Thanks in advance !
The size of get depends on used browser. Some support 2000 character,
some more. I would recommend to use post, if send data has more than
255 character.

purcaholic

Jun 7 '07 #2

gizz
P: n/a
gizz
The size of get depends on used browser. Some support 2000 character,
some more. I would recommend to use post, if send data has more than
255 character.
>
Do you mean there is no size limit for _POST data ?


Jun 7 '07 #3

Rik
P: n/a
Rik
On Thu, 07 Jun 2007 11:12:53 +0200, gizz <gizz@nospam.orgwrote:
>The size of get depends on used browser. Some support 2000 character,
>some more. I would recommend to use post, if send data has more than
>255 character.
>>
>
Do you mean there is no size limit for _POST data ?
Only what is configured on the webserver AFAIK.
If you upload files, you essentially POST them, so go figure :-)
--
Rik Wasmus
Jun 7 '07 #4

=?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=
P: n/a
=?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=
purcaholic wrote:
The size of get depends on used browser. Some support 2000 character,
some more.
I don't think so: I recall (4+ years ago) having my browser send 10+ KiB of
data to the server, and the server parsing only the first 8 KiB.

I agree on the "256 bytes max if you want to be sure" rule of thumb, though.


Also, keep in mind the recommendations from the guys who invented the web
thing:
- Use the GET method when querying information
- Use the POST method when sending information to the server

e.g. use GET for search forms, but use POST for configuration forms. And
never ever use GET for "delete" links, or you'll discover that your entire
content has been delete by a web crawler.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Good news. Ten weeks from Friday will be a pretty good day.

Jun 7 '07 #5

purcaholic
P: n/a
purcaholic
On 7 Jun., 12:00, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
purcaholic wrote:
The size of get depends on used browser. Some support 2000 character,
some more.
>
I don't think so: I recall (4+ years ago) having my browser send 10+ KiB of
data to the server, and the server parsing only the first 8 KiB.
>
I agree on the "256 bytes max if you want to be sure" rule of thumb, though.
>
Also, keep in mind the recommendations from the guys who invented the web
thing:
- Use the GET method when querying information
- Use the POST method when sending information to the server
>
e.g. use GET for search forms, but use POST for configuration forms. And
never ever use GET for "delete" links, or you'll discover that your entire
content has been delete by a web crawler.
>
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
Good news. Ten weeks from Friday will be a pretty good day.

You can limit the size of allowed data also by the server.

See http://httpd.apache.org/docs/2.2/en/...questfieldsize
The default configuration in Apache HTTP-Server allows only 8190
bytes.

purcaholic

Jun 7 '07 #6

purcaholic
P: n/a
purcaholic
On 7 Jun., 11:12, "gizz" <g...@nospam.orgwrote:
The size of get depends on used browser. Some support 2000 character,
some more. I would recommend to use post, if send data has more than
255 character.
>
Do you mean there is no size limit for _POST data ?
Post data is also limited, but you can send more data using post. See
"post_max_size" setting in your php configuration.
The default php setting should accept 8 MB of data. Drill off the
setting, if you need more.

Jun 7 '07 #7

Post your reply

Help answer this question



Didn't find the answer to your PHP question?

You can also browse similar questions: PHP $_get argument