Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How to access a secured resource by using the FTP protocol
Article ID: 159617 - View products that this article applies to.
This article was previously published under Q159617
To access a file on a secured FTP server, that is, a server that does not accept anonymous requests, the protocol requires that the username and password be supplied as a part of the uniform resource locator (URL) used to make the request. The format of such a URL is the following:
To demonstrate the usage of this syntax using Internet Explorer, follow these steps:
To demonstrate the syntax using a URL moniker, follow these steps:
Developers using URL monikers should observe that the requirements for obtaining secured data via the FTP protocol is different from the requirements for obtaining secured data via HTTP. To use a URL moniker to bind to secured data stored at an FTP site, the host must supply the URL moniker with the username and password in the initial call to CreateURLMoniker in the format specified above.
To use a URL moniker to bind to data stored on an HTTP server, the host implements IAuthenticate on the same object that implements IBindStatusCallback. The URL moniker calls the host's implementation of IAuthenticate::Authenticate to retrieve authentication information.
Article ID: 159617 - Last Review: January 16, 2006 - Revision: 1.2