I need to access a XML file located in a secured location on a web server. The security of the file is done using htaccess.
How can I read from VB.NET (or any .NET) this file, providing the necessary credentials ?
I need to access a XML file located in a secured location on a
Share
I assume you mean that you need to supply a username and password.
To do this, set a
Credentialsobject on theHttpWebRequest. See the documentation for more information and an example:http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.credentials.aspx