<input value="" id="len" />
<input type="button" value="生成" οnclick="var h ='http://myhrd.cn/e/?' + new Array(1*document.getElementById('len').value).join('0');document.getElementById('aa').innerHTML = '<a href=' +h+ ' target=qidiz >' +h.length+ '</a>';" />
<div id="aa">
</div>
活力的自动拼接指定长度url的方法.生成后点击即可了解.
最好结合http包+服务器接受反馈.
部分浏览器测试.
firefox20版本好像没有限制,有多少提交多少,到了apache这块,会提示(提交数据是5万左右)
Request-URI Too Long
The requested URL's length exceeds the capacity limit for this server.
ie10测试时,生成url是1万,从包中看到,实际提交是截取前面2k左右的数据来提交,后面忽略;
所以,经过二个测试,安全值应该是在2k以下.至于手机或是其它使用web控制之类的还没有测试.如foxmail,android浏览器.