URL最大長度

URL最大長度的限制,在標準規範中並無定義。但是,Microsoft Internet Explorer 有規定,需在
2,083個字元內。其他瀏覽器,如Firefox、Chrome、Opera等,至少為65,536個字元。

但Apache Server可接受的字元數為4,000,IIS則為16,384。

因此,若開發人員想要利用URL傳遞參數的話,URL長度盡量在2,000個字元內,會比較安全

參考資料

  1. URL的最大長度限制
  2. 最大 URL 長度是在 Internet Explorer 中的 2,083 字元
This entry was posted in ajax, ASP.NET, browser, jQuery, mvc, PHP, 網路, 網頁撰寫, 資工. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *