每个网络浏览器的MAILTO最大长度? [英] MAILTO max-length of each internet browsers?

查看:345
本文介绍了每个网络浏览器的MAILTO最大长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新: 在这个问题提前两年,有人问到类似的问题: Peter O. 指出的有效最大mailto:body长度幸运地回答这两个问题是相辅相成的:-)浏览器在过去的两年中发展了很多,因此我们可以说这个问题是另一个问题的一个更新; - )



没有规定限制 mailto 命令的长度:

  • RFC 6068 规范

  • HTML 4规范( mailto 命令是一个URL)

    (请参阅这个SO答案这个答案SO q问题和评论这一个



    因此, mailto 命令长度取决于互联网浏览器的实现。



    我猜很旧的浏览器不能很好地处理超过255个字符的 mailto 命令。



    但是,现在内存大小已经不再是关于 mailto 命令长度的问题。



    最常见的 的 mailto 最大长度是多少? 互联网浏览器?



    有趣的是浏览器是否收敛到相同的 mailto 长度的限制。

    解决方案

    Firefox对系统可用内存以外的URL长度没有任何限制,必须考虑操作系统当调用一个进程时,参数的最大长度限制为m

    另外,你可以设置一个Web应用程序作为你的mailto URI方案处理器,在这种情况下,取决于接受请求的服务器。 Firefox带有几个选项,比如Gmail和Yahoo!邮件,您可以使用 navigator.registerProtocolHandler 注册自己的处理程序。如果您好奇,请打开about:config并过滤gecko.handlerService.schemes,以查看您在浏览器中配置的Web应用程序处理程序。



    我可以对其他浏览器来说,但是一旦你开始依赖如此多的变量(浏览器,可用内存,操作系统,服务器),最好尝试一种不同的策略。

    Update: Two years before this question, a similar question was asked: Effective maximum mailto: body lengths as pointed out by Peter O. Luckily answers of both questions are complementary :-) Browsers evolved a lot in the last two years, therefore we can say this question is an update of the other one ;-)


    No specification limits the mailto command length:

    1. RFC 6068 specification
    2. HTML 4 specification (mailto command is an URL)
      (please see this SO answer, the answers of this SO question and the comment of this one)

    Therefore the mailto command length depends on internet browser implementations.

    I guess very old browsers could not handle mailto commands using more than 255 characters well.

    However, nowadays, memory size is no longer an issue about mailto command length.

    What is the mailto max-length of the most common internet browsers?

    Should be interesting to see whether browsers converge to the same mailto length limitation.

    解决方案

    Firefox does not impose any limits on the length of URLs other than the system's available memory, so you'll have to look into operating system limits for the maximum length of the parameters when invoking a process.

    Additionally, you can set a Web app as your mailto URI scheme handler, and in that case the limit depends on the server accepting the request. Firefox comes with a few options like Gmail and Yahoo! Mail, and you can register your own handler with navigator.registerProtocolHandler. If you're curious, open about:config and filter on "gecko.handlerService.schemes" to see the Web app handlers you have configured in your browser.

    I can't say for other browsers, but once you start to depend on so many different variables (browser, available memory, OS, server), it's probably best to try a different strategy.

    这篇关于每个网络浏览器的MAILTO最大长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆