PSS ID Number: 184352
Article Last Modified on 7/15/2004
The information in this article applies to:
- Microsoft Internet Information Server 4.0
- Microsoft Internet Client SDK 4.0
- Microsoft Internet Client SDK 4.01
- Microsoft ActiveX SDK 1.0
This article was previously published under Q184352
SUMMARY
There are several options available for uploading files to Internet Information Server (IIS) programmatically from client applications. This articles presents some of these options, and describes how to employ HTTP PUT functionality.MORE INFORMATION
Using the WebPost APIs
One method for uploading files is by using the WebPost APIs, with either the HTTP POST method or the ActiveX upload control. The WebPost APIs are fully documented and explained in Internet Client SDK.The drawback is that both of these methods require that the server have a special component that handles posted data and saves it in a file on the server's file system. The exceptions are WebPost and ActiveX control uploading when using an FTP posting provider. However, this requires installing and configuring an FTP server in addition to the WWW server.
The Microsoft Posting Acceptor shipped with Windows NT 4.0 Option Pack (NTOP) provides the back-end functionality for file uploads via the methods described above. Please see the NTOP documentation and Microsoft Posting Acceptor release notes (also shipped with NTOP) for information on how to configure and use Posting Acceptor and File upload control.
By Using HTTP Protocol PUT Functionality
The HTTP protocol PUT functionality method does not require any components on the server to handle upload data. The PUT functionality is built-in to IIS 4.0. Please note that not all Internet Browsers can handle the HTTP PUT verb. The following discussion applies to applications written with the WinInet APIs, which give the programmer the ability to create and send an HTTP request programmatically.The PUT method is described in the HTTP/1.1 RFC 2068 (
REFERENCES
For additional information, see the following article or articles in the Microsoft Knowledge Base:177188 FILE: Using HttpSendRequestEx for Large POST Requests
Additional query words: UPLOAD Posting Acceptor PUT
Keywords: kbhowto KB184352
Technology: kbAudDeveloper kbIClientSearch kbiis400 kbiisSearch kbSDKActiveX kbSDKActiveXsearch kbSDKIClient400 kbSDKIClient401 kbSDKSearch kbZNotKeyword