What is the maximum length of a URL that can be opened in a J2ME browser?

What is the maximum length url?

This may be phone dependent; on the desktop, it definitely depends on the browser, as discussed in this question .

I am interested in specifications or references, as well as empirical data.

In my particular case, we pass a very long (about 1600 characters) URL MIDlet.platformRequest(String url)that does not work. Most URLs (about 1575 characters) are a request.

Are there any other considerations for passing very long URLs (like mobile proxies and gateways truncating the URL)?

+3
source share
4 answers

: , , , .

SonyEricsson J2ME (WTK 2.2.4), K610i Samsung U700V.


: platformRequest() URL ( Firefox).

http://test.example.com/?q=2048xxxxxxxxxxxxxxxxxxxxxxxxxxxx... xxxxxxxxxxxxxxxxxx2048

, , URL- .

( SonyEricsson K610i: "SonyEricssonK610i/R1CB Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1" ) URL- 3072 ( c.3800).

Samsung U700V, : "Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 MG (Novarra-Vision/7.3), URL 2048, 3072. , Novarra, , , .

Novarra ( ) U700V "SAMSUNG-SGH-U700-Vodafone/BUGK1 SHP/VPP/R5 NetFront/3.4 Qtv5.3 SMM-MMS/1.2.0/MIDP- 2.0/CLDC-1.1" 3072 .


, , URL- .

:

URL-, , . , , , .

.

Samsung, , , .

K610i, , .

0

HTTP , 255 , , . , IE URL- 2048 , , Apache, -, URL > 4000 .

: WWW : URL-?

URL J2ME.

UPDATE: " URL- . - URL- 128, 256 512 , WAP- ( , HTTP- )".

: URL- -

+2

@Stephen C, 255 . POST? , POST.

0

Microsoft Internet Explorer () Microsoft , URL- Internet Explorer 2083 , URL- 2048 . URL- , , Internet Explorer. Firefox () 65 536 URL- Windows Firefox 1.5.x. , URL-. 100 000 . Safari () 80 000 . 80 000 . Opera () 190 000 . 190 000 . Opera 9 Windows , URL- 190 000 . Apache () URL- - URL- 4000 , Apache "413 Entity Too Large". Apache, Red Hat Enterprise Linux 4. Apache 8192- . Microsoft Internet Information Server - 16 384 (, - Microsoft URL-, - Microsoft). . Perl HTTP:: Daemon (Server) 8 000 . , - Perl HTTP:: Daemon, 16 384 HTTP-. POST-, .., URL-. 413, URL- 8000 . . 16x1024 Daemon.pm . , . URL- . URL- 2000 -. , .

, , URL, POST, GET:

...

HTTP, URL- URL-. URL-.

, , URL-. "" URL-. , - - "" "" . , URL- 2000 , , "". , . , . - , , base-64 ( , ).

gzip , URL. base64, , URL-. 3-4- , URL- . , , !

An alternative is to store status information in a file or database. Then you can save only the identifier needed to search for this information again in the URL. The disadvantage here is that you will have many state files or database records. Some may be linked to sites operated by others. One solution to this problem is to delete status files or database entries for URLs that have not been re-viewed after a certain time.

-4
source

Source: https://habr.com/ru/post/1713663/


All Articles