HOWTO: Accessing a Secured Resource Using the FTP Protocol

Last reviewed: January 19, 1998
Article ID: Q159617
The information in this article applies to:

- Microsoft Internet Explorer, version 3.0, 3.01, 3.02, 4.0, 4.01

SUMMARY

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:

   ftp://<user_name>:<password>@<machine_name>/<path_to_resource>

MORE INFORMATION

To demonstrate the usage of this syntax using Internet Explorer, perform the following 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, perform the following 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 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.

REFERENCES

Internet Client SDK online documentation

Keywords          : AXSDKUrlMon kbusage
Version           : Win:3.0,3.01,3.02,4.0
Platform          : WINDOWS
Issue type        : kbhowto


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 19, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.