-1

how can i increase the data that the GEt(not POST) method can send?

Mojtaba A.
  • 23
  • 4
  • Could you please clarify your question? – Michiel Pater Mar 25 '11 at 08:49
  • 3
    Redefine the http standard, create your own nuHTTP server, build your own browser and start playing with your friends.. – Peter Lindqvist Mar 25 '11 at 09:08
  • On the client-side with `opera:config` and "Maximum length of url" (mine is 2GB). And for the server-side, make a PHP daemon script, listen to a separate port, receive and parse HTTP GET requests yourself. For other servers: out of luck. – mario Mar 25 '11 at 09:35
  • If the limit is to small then stop sending the data with the HTTP request and send a reference to the data, like a URI. Then make your script, or whatever, download the contents of the URI and process that data. Obvious security checks assumed. – Nick Mar 25 '11 at 10:07

3 Answers3

2

You have no control over the limitations of the GET request.

There are limitations in various browsers (some as low as 255 characters) and also limitations imposed by a server, but normally more than 255 characters.

So you will need to think of another way of indexing your content that doesn't require such massive URLs. 255 characters is quite a lot for a normal GET request - so you are probably trying to do something other than just serve a page.

Please give more information about why you need longer URLs and we may be able to offer a better alternative.

Fenton
  • 241,084
  • 71
  • 387
  • 401
0

Have a look at what-is-the-maximum-length-of-an-url on SO.

Community
  • 1
  • 1
Nick Weaver
  • 47,228
  • 12
  • 98
  • 108
0
registration-sucsess.php?type=Full Payment&product_id=aa

here we are passing two variables type and product_id

Varada
  • 16,026
  • 13
  • 48
  • 69