IE浏览器的发送选项申请文件下载 [英] IE Sending OPTIONS Request for File Downloads

查看:208
本文介绍了IE浏览器的发送选项申请文件下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的地盘我有一个非常基本的设置:一个A HREF标记,只是点到文件中。没什么特别的:

On my site I have a very basic setup: an 'a href' tag that just points to a file. Nothing fancy:

<a href="/path/to/my/file.doc">File</a>

没有花哨的JavaScript,什么都没有。谁正在使用旧版本的IE低于8部分用户已经下载有这样不同的文件参差不齐的问题。我已经能够追溯回是IE将发送该文件的OPTIONS请求(即使在当时不是所有的时间)。因为我没有运行WebDAV服务器,我的mod_security设置为默认拒绝那些非正常头,所以它会返回一个500响应。

No fancy javascript, nothing. Some users who are using old IE versions less than 8 have been having spotty problems downloading different files like this. What I've been able to trace it back to is that IE will send an OPTIONS request for the file (and even then not all the time). Since I'm not running a Webdav server, I had mod_security set at the default to reject those non-normal header, so it returns a 500 response.

IE8,火狐和Chrome不会做一个OPTIONS请求,因此永远不会有问题。

IE8, Firefox, and Chrome do not do an OPTIONS request and therefore never have a problem.

我需要在我结束IE浏览器设置不同的东西了停止发送OPTIONS请求,只是一个标准的GET请求?

Do I need to set something up differently on my end to IE stop sending an OPTIONS request and just a standard GET request?

运行:


  • 的CentOS 5.3

  • 的Apache 2.2.8

  • 的mod_security 2.5.0

推荐答案

在某些时候,我发现了一篇文章,称IE浏览器将发送OPTIONS直接文件下载请求的只是它是如何发挥作用的部分。

At some point I found an article that said that IE will send the OPTIONS request on direct file downloads as just part of how it functions.

这篇关于IE浏览器的发送选项申请文件下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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