手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表Tag:url

IE中的URL最大长度限制

今天又遇到了这个问题,以前其实是知道的。IE下的cookie长度和firefox下不一样。GET的长度也不样。
但我在记忆中一直是当成4096来处理的。看来我脑子里想的更多的都是firefox或者chrome,今天遇到某些信息不能显示的时候,又想起这个问题。才发现:
原文:http://blog.csdn.net/tuwen/article/details/5257154

看见很多朋友讨论浏览器最大URL长度限制的问题。其实实际中URL长度限制是由2方面决定的。1 客户浏览器 2 接受服务请求的服务器端的设置。对于大多数用户来说,他们使用的浏览器是IE浏览器,IE的最大URL长度限制是2083字节,而实际可以使用的最大长度 为2048字节。

 
以下是微软方面的技术资料及翻译:
 
Maximum URL length is 2,083 characters in Internet Explorer
在IE中URL最大长度是2083字节
 
SUMMARY
摘要
Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters.
微软 Internet Explorer 限制最大统 一资源定位器 (URL) 长度为2083字节。
 
Internet Explorer also has a maximum path length of 2,048 characters. This limit applies to both POST
request and GET request URLs.
Internet Explorer 对最大请求路径长度也进行了限制,限制长度为2048字节。这个限制对 POST 请求和 GET 请求的URL均适用。
If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path.
如果您使用GET方法,您将受到最大2048字节的长度限制,减去实际路径中的字符数。
(注:实际可以使用的字符串长度=2048-请求页面路径字符长度)
 
However, the POST method is not limited by the size of the URL for submitting name/value pairs. These pairs are transferred in the header and not in the URL.
但是, POST 方法提交名称 / 值对不受 URL 长度的大小的限制。 因为这些名 / 值对是在请求中的header部分传输的,而不在URL中。
RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1," does not specify any requirement for URL length.
RFC 2616、 " 超文本传输协议 -- HTTP /1.1, " 未指定任何对 URL 长度要求。
 
由此文大家可以知道,实际在IE中可以使用的最大URL长度是2048字节减去您请求页面的路径长度。另外这个长度还受到服务端相应软件的限制。

--------------------
关于cookie,可以看一下:
Cookie常识
“同名Cookie”的分析
cookie,又见cookie

Tags: url, ie, firefox, chrome

URL to Barcode

以前,我说过有关于QR CODE的博客(QR CODE),也推荐了google的开源工具,事实上我的每篇博客右侧也都生成了二维码。

我这里是介绍的别人的文章 ,来自于:http://www.mikespook.com/index.php/archives/793

每当我使用PC上网的时候,总是有一些链接我想分享到手机里。Barcode 2D 正合适做这件事情。所以,你看到了这个“URL to Barcode”。这个简陋的网站帮你将 URL 转换为 Barcode。

使用

  • 输入URL;
  • 点击“生成 BARCODE”按钮;
  • 获取到 BARCODE;
  • 使用手机上的条码扫描程序扫描;
  • 使用手机里的浏览器打开 URL。

致谢

Barcode 是由 PHP QR Code 生成的。

在 Android 平台,Barcode Scanner 是非常棒的扫描软件。它给了我很多帮助!

在 iOS 平台,我并不清楚哪个软件更好。这个文章可能会给你一些帮助:5 个最好的 Barcode iPhone 应用(英文)

 

When I’m using PC browsing the Internet. There will always be some URLs, that I want to share to my mobile. The barcode 2d should be the right thing. So, now you see this “URL to Barcode”. This is a simple site that provides a URL conversion Barcode services.

Usage

  • Input the url;
  • Press “Make BARCODE”;
  • Get the BARCODE;
  • Scan it with the scaner software in your mobile;
  • Open the url with the browser in your mobile.

Acknowledgements

The barcode was made by PHP QR Code

In the Android, here is a great barcode scaner: Barcode Scanner. It helps me much more!

In the iOS, I don’t konw which software is better. This article should gives you some help: 5 Best Barcode iPhone Applications.

Tags: url, barcode, qrcode, 二维码