Size of GET requests restricted?

Size of GET requests restricted?

am 13.01.2008 22:23:46 von seaside

Does anybody know, of PHP - especially file_get_contents() - restricts
the size of the URL, which is passed to send a GET request?

I need to pass serializes array from one app to another. These
structures might get big....

Re: Size of GET requests restricted?

am 13.01.2008 22:39:23 von Michael Fesser

..oO(seaside)

>Does anybody know, of PHP - especially file_get_contents() - restricts
>the size of the URL, which is passed to send a GET request?

In theory the length is not restricted by the RFC (IIRC), but in
practice there are limitations in the browsers and maybe even in the web
servers.

>I need to pass serializes array from one app to another. These
>structures might get big....

What about sessions or POST?

Micha

Re: Size of GET requests restricted?

am 14.01.2008 00:35:07 von Tim Roberts

seaside wrote:
>
>Does anybody know, of PHP - especially file_get_contents() - restricts
>the size of the URL, which is passed to send a GET request?

The practical limits are described here:

http://www.boutell.com/newfaq/misc/urllength.html

But there's more to it than that. In order for a file upload to happen,
you must use a PUT request, and you must set enctype=multipart/form-data.
You can't send a file with GET.

>I need to pass serializes array from one app to another. These
>structures might get big....

POST is the right answer for this.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: Size of GET requests restricted?

am 14.01.2008 04:21:09 von seaside

On 13 Jan., 22:39, Michael Fesser wrote:
> .oO(seaside)
>
> >Does anybody know, of PHP - especially file_get_contents() - restricts
> >the size of the URL, which is passed to send a GET request?
>
> In theory the length is not restricted by the RFC (IIRC), but in
> practice there are limitations in the browsers and maybe even in the web
> servers.
>
> >I need to pass serializes array from one app to another. These
> >structures might get big....
>
> What about sessions or POST?

Thx! I'll switch to SOAP, which is anyway a better design.

Re: Size of GET requests restricted?

am 14.01.2008 14:50:58 von colin.mckinnon

On 14 Jan, 03:21, seaside wrote:
> On 13 Jan., 22:39, Michael Fesser wrote:
>
> > .oO(seaside)
>
> > >Does anybody know, of PHP - especially file_get_contents() - restricts
> > >the size of the URL, which is passed to send a GET request?
>
> > What about sessions or POST?
>
> Thx! I'll switch to SOAP, which is anyway a better design.

lol