How to access a secured resource by using the FTP protocol

This article was previously published under Q159617
This article has been archived. It is offered "as is" and will no longer be updated.
To access a file on a secured FTP server, that is, a server that does notaccept anonymous requests, the protocol requires that the username andpassword be supplied as a part of the uniform resource locator (URL) usedto make the request. The format of such a URL is the following:
More information
To demonstrate the usage of this syntax using Internet Explorer, follow these steps:
  1. Identify an FTP site that requires a username and password and a file on that server that you wish to get.
  2. Launch Internet Explorer.
  3. In the Address combo box enter the URL in the format specified above.
The contents of the file should be display in the Browser window.

To demonstrate the syntax using a URL moniker, follow these steps:
  1. Build the Progress sample included with the Internet Client SDK.
  2. Run the Progress sample specifying the same address used in step 3 above.
The contents of the file should display in the Progress dialog box.

Developers using URL monikers should observe that the requirements forobtaining secured data via the FTP protocol is different from therequirements for obtaining secured data via HTTP. To use a URL moniker tobind to secured data stored at an FTP site, the host must supply the URLmoniker with the username and password in the initial call toCreateURLMoniker in the format specified above.

To use a URL moniker to bind to data stored on an HTTP server, the hostimplements IAuthenticate on the same object that implementsIBindStatusCallback. The URL moniker calls the host's implementation ofIAuthenticate::Authenticate to retrieve authentication information.
Internet Client SDK online documentation

Article ID: 159617 - Last Review: 10/26/2013 13:09:00 - Revision: 2.0

  • kbnosurvey kbarchive kbhowto kbusage KB159617