首页 \ 问答 \ 在Jetty中设置最大URL长度(Set maximum URL length in Jetty)

在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
更新时间:2022-09-22 09:09

最满意答案


There is the File API which is present on modern browsers.

相关问答

更多
  • 您可以使用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 }}
    然后在onFileChange方法中处理图像预览; var selectedFiles = e.target.files; for (var ...
  • 这可能完全是午餐,但既然你正在寻找任何可能有帮助的想法,那么这就是我的。 首先,我假设文件的实际编辑发生在浏览器之外,并且您只是在寻找更好的方法来来回获取文件。 在这种情况下,我过去使用过的一个选项就是使用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 ...
  • 对不起,你不能直接 您最好的选择是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 它提供有关浏览器的详细信息。 然而,它几乎是免费的格式, ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)