为 PUT 方法配置 Apache HTTP 2.2
我已经使用 C# 中的 HttpWebRequest
和 HttpWebResponse
类以及 Apache HTTP 服务器 v2.2 编写了文件上传和下载代码。在代码中,我使用 'request.method = "PUT"',因此我想配置我的 httpconfig 文件以支持 PUT 方法。我编写 PUT 方法脚本,因为
<Location "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/output">
<Dav On
<LimitExcept GET HEAD OPTIONS PUT>
<Allow from all
</LimitExcept>
</Location>
这不起作用。如何让它发挥作用?
I've written code for file upload and download using the HttpWebRequest
and HttpWebResponse
classes in C# with the Apache HTTP server v2.2. In code, I am using 'request.method = "PUT"', so I want to configure my httpconfig file to support the PUT method. I write the PUT method script as
<Location "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/output">
<Dav On
<LimitExcept GET HEAD OPTIONS PUT>
<Allow from all
</LimitExcept>
</Location>
That's not working. How do make it work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试如下配置。您将需要一个正确的路径来处理 PUT 请求的程序/处理程序。
Try configuring it like below. You will need a proper path to the program/handler that will process PUT requests.