在Jetty中设置最大URL长度(Set maximum URL length in Jetty)
我看了一下,发现一些用GET请求URL超过Jetty中最大长度的问题的答案是将jetty.xml中的headerBufferSize设置为更大的数字,就像这个Solr疑难解答手册和这个一样 。
但是,我很难理解标题缓冲区大小与请求URL的长度有什么关系? 如果设置headerBufferSize增加请求的URL长度限制,那么headerBufferSize的6 KB值与请求的URL的最大长度是一致的? 我之所以问这个问题,是因为大多数浏览器强加的URL的最大长度大约是2000个字符,因为不同浏览器中URL的最大长度是多少? 而headerBufferSize的单位是Bytes。
I looked and found the answer to some people having issue with GET request URL exceeding the maximum length in Jetty is to set the headerBufferSize in jetty.xml to be a bigger number as in this Solr troubleshooting manual and this.
However, I have a hard time to understand what the header buffer size has to do with the request URL's length? If setting headerBufferSize increase request's URL length limit, what does a value of 6 KB to headerBufferSize correspond to the maximum length of the request's URL? The reason I ask because the maximum length of URL imposed by most browsers is around 2000 characters as in What is the maximum length of a URL in different browsers? and headerBufferSize's unit is in Bytes.
原文:https://stackoverflow.com/questions/19549163
最满意答案
There is the File API which is present on modern browsers.
相关问答
更多-
Web应用程序如何在客户端PC上同步文本文件的文件夹?(How can a web application synch a folder of text files on the client's PC?)[2023-05-27]
您可以使用PersistJS将数据保存在浏览器中, PersistJS使用它可以找到的最佳客户端持久性存储机制来支持: 闪 Google Gears HTML 5存储规格 浏览器特定的扩展 饼干 当你的应用重新连接时,你可以重新同步。 创建和阅读文本文件是浏览器通常会阻止您的网站做的事情。 You can save data on the browser using PersistJS, which uses the best client-side persistent storage mechanism ... -
不,作为安全功能,FilUpload控件不允许您设置下载内容(想象一下,如果您登录到网站,并设置为上传密码文件或其他内容)。 现在可能有另一个控件,或者一种代码来解决这个问题,但是FileUpload控件不会允许它。 我建议使用jQuery Multifile Uploader来处理UI(如果你需要的话)。 并使用免费ASP上传实际上传 ,负责实际的文件传输。 虽然听起来你是以编程方式处理程序,所以你可以跳过multifule并使用免费的asp上传。 No, as a security feature, F ...
-
我不太了解Prototype,但你应该将该元素缓存在局部变量中,而不是围绕它包装$函数。 $$( '.requiredfield' ).each( function ( elem ){ var el = $(elem) if ( (elem.value.length == 0 ) || elem.value == null ) ) { // is elem.value ever null? el.addClassName( "nonvalid" ); el.sib ...
-
发现了一个问题。 我只是在View的Web.config设置了限制,但它应该在根目录中的主Web.config中。 Found a problem. I just set the limitations in View's Web.config but it should be in main Web.config in the root.
-
现代浏览器中存在File API 。 There is the File API which is present on modern browsers.
-
我将在模板中引入一个div来保存要预览的文件:{{ image.name }}
-
这可能完全是午餐,但既然你正在寻找任何可能有帮助的想法,那么这就是我的。 首先,我假设文件的实际编辑发生在浏览器之外,并且您只是在寻找更好的方法来来回获取文件。 在这种情况下,我过去使用过的一个选项就是使用Apache或任何其他您喜欢的vanilla Web服务器来绕过Web应用程序。 要下载,请创建一个唯一的文件会话令牌,记住它在Web应用程序中,并将该令牌(例如
.doc)命名的文件副本放在Apache可见的下载目录中。 然后提供指向将通过Apache提供的文件的链接。 对于 ... -
UDP是一种无连接,不可靠的面向分组的协议。 如果没有绑定到远程计算机上特定端口的套接字,则只会删除该数据包。 您必须实现某种协议,该协议支持检测客户端是否在线。 也许定期发送保持活动类型的消息。 UDP is a connectionless, unreliable packet-oriented protocol. If there is no socket bound to a particular port on the remote machine then the packet will sim ...
-
你需要在2之间进行某种形式的通信。它可能是TCP / IP套接字或WCF或经典的web服务......但如果它是webservices,那么你需要它像在WCF中一样托管在IIS中。 但是WCF不仅允许您在IIS中托管它,而且它可以在您的应用程序中自托管,或者您也可以使用Windows激活服务(WAS)。 TCP / IP套接字也可以作为解决方案。 我倾向于使用TCP / IP套接字,因为您描述的问题比完全膨胀的服务更适合这种情况。 you need some form of communication be ...
-
如何获取客户端PC名称?(How to get the client PC name?)[2022-05-14]
对不起,你不能直接 您最好的选择是User-Agent标头。 你可以在JSP或Servlet中得到它, String userAgent = request.getHeader("User-Agent"); 标题看起来像这样, User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13 它提供有关浏览器的详细信息。 然而,它几乎是免费的格式, ...