.htaccess (403) Forbidden vb.net file download
Posted on 2006-03-30
i try to download a file from the server, the folder that withhold the file contain this file: .htaccess
inside of it there is: deny from all
im trying to access this folder using this code:
Dim proxyObject As WebProxy = New WebProxy(url, True)
Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url)
objRequest.Proxy = proxyObject
Dim ws As HttpWebResponse = CType(objRequest.GetResponse(), HttpWebResponse)
Dim str As Stream = ws.GetResponseStream()
this is returning the exception:
The remote server returned an error: (403) Forbidden.
is there a way to download the file without having to remove the .htaccess ???
thanks in advcance