Does 2k length limit for URLs in IE still exist for IE 7 and IE 8?

Is there a 2k length limit for URLs in IE for IE 7 and IE 8? (post IE 6 era)

+3
source share
6 answers

http://support.microsoft.com/kb/208427

It seems to still exist, because IE8 is the uploaded browser in Windows 7.

+3
source

All IE requests go through Wininet. Check out the Win7 SDK header files:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include>findstr /spin /c:"INTERNET_MAX" *.h
WinInet.h:85:#define INTERNET_MAX_HOST_NAME_LENGTH   256
WinInet.h:86:#define INTERNET_MAX_USER_NAME_LENGTH   128
WinInet.h:87:#define INTERNET_MAX_PASSWORD_LENGTH    128
WinInet.h:88:#define INTERNET_MAX_PORT_NUMBER_LENGTH 5           // INTERNET_PORT is unsigned short
WinInet.h:89:#define INTERNET_MAX_PORT_NUMBER_VALUE  65535       // maximum unsigned short value
WinInet.h:90:#define INTERNET_MAX_PATH_LENGTH        2048
WinInet.h:91:#define INTERNET_MAX_SCHEME_LENGTH      32          // longest protocol name length
WinInet.h:92:#define INTERNET_MAX_URL_LENGTH         (INTERNET_MAX_SCHEME_LENGTH \
WinInet.h:94:                                        + INTERNET_MAX_PATH_LENGTH)
WinInet.h:1712:#define MAX_GOPHER_HOST_NAME        INTERNET_MAX_HOST_NAME_LENGTH
WinInet.h:1720:                                    + INTERNET_MAX_PORT_NUMBER_LENGTH   \
Winineti.h:1511:#define URL_LIMIT INTERNET_MAX_URL_LENGTH

So yes, this is a length limit.

+3
source
+1

IE7 IE8 2083 .

, , url URL- .

+1

According to this knowledge base article , it applies to IE7 and IE8:

+1
source

I have Javascript successfully executing a GET request of up to 4096 characters in Internet Explorer 8. Requests are longer than it will be executed, but parameters exceeding this length are truncated. I can’t find documented anywhere, but this is what I found empirically.

0
source

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


All Articles