使用.htaccess从web文件夹下载文件 [英] Download file from web folder using .htaccess

查看:78
本文介绍了使用.htaccess从web文件夹下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要从Web服务器文件夹下载一个文件,该文件夹使用.htaccess文件来限制对内容的访问 - 如何从ac#Winform应用程序设置授权?如果我删除,我可以下载确定.htaccess文件



我尝试过:



除了谷歌搜索没有帮助我。

解决方案

你可能想看看这些:



< a href =http://stackoverflow.com/questions/16044313/webclient-httpwebrequest-with-basic-authentication-returns-404-not-found-for-v> c# - 具有基本身份验证的Webclient / HttpWebRequest返回404而不是找到有效的URL - Stack Overflow [ ^ ]



http-C#// GetResponseAsync()// NetworkCredential // .htaccess on Windows 10 IoT Raspberry Pi 2 - Stack Overflow [ ^ ]

Hi all, I need to download a file from a web server folder which uses a .htaccess file to restrict access to the contents - how do I set the authorization from a c# Winform app ?, I can download ok if I remove the .htaccess file

What I have tried:

Nothing except googling which hasn't helped me.

解决方案

You might want to look at these:

c# - Webclient / HttpWebRequest with Basic Authentication returns 404 not found for valid URL - Stack Overflow[^]

http - C# // GetResponseAsync() // NetworkCredential // .htaccess on a Windows 10 IoT Raspberry Pi 2 - Stack Overflow[^]


这篇关于使用.htaccess从web文件夹下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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