IIS 7 (Windows Server 2008) 的話是有 GUI 可以設定, IIS 6 (Windows Server 2003) 的話, 好像要過 Regedit 修改註冊檔來完成.
錯誤的畫面如下:
IIS 7 解法:
Error message when you visit a Web site that is hosted on a server that is running Internet Information Services 7.0: "HTTP Error 404.10 - REQUEST_HEADER_TOO_LONG"
http://support.microsoft.com/kb/942077/
IIS 4 + IIS5 解法:
Description of the MaxClientRequestBuffer Registry Value
http://support.microsoft.com/kb/260694
IIS6 (Windows Server 2003) 透過增加2個 key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters\MaxRequestBytes
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters\MaxFieldLength
再輸入:
net stop http
net stop w3svc
net stop iisadmin
net start http
net start w3svc
net start iisadmin
結果, 居然可行, 成功了... 但URL 的資料量再上去, 就還是收不到值,
結論: 還是乖乖透過 POST 來傳料好了.
沒有留言:
張貼留言