![]() |
|
![]() Start Page Readme
|
Microsoft® Site Server Express Posting Acceptor Release Notes
This document describes the Microsoft Posting Acceptor server add-on and provides important information about the product. For the most recent information about the product please see the Microsoft Windows NT Option Pack 4.0 Release Notes. Users of this tool should be familiar with the Microsoft® Windows NT® operating system. What Does the Posting Acceptor Server Add-on Do? Microsoft Posting Acceptor is a server add-on tool that enables Web content providers using HTTP Post (RFC 1867) to publish content to your hosting service. Hardware and Software Requirements Hardware Windows NT Server 4.0:
Windows NT Workstation 4.0:
Software Windows NT Server 4.0 (with or without Content Replication System):
Windows NT Workstation 4.0 (no Content Replication System support):
*Active Server Pages is not required, but will allow for automatic-routing of the posting client to the proper page for a particular client tool. Microsoft IIS and Personal Web Server 1.0a provide ASP in their respective installations.
Enabling or Disabling Mapping Modules To enable or disable a mapping module, you must set the value of the HKLM/Software/Microsoft/WebPostAcceptors/CPSHost/Mappers registry key. To enable a mapping module, set the value to 1. To disable it, set the value to 0. Posting Acceptor now includes repost.asp, a sample post-processing page. This sample shows a simple application of the Posting Acceptor post-processing feature. When it is called from uploadn.asp (the form-based RFC1867 page for Netscape clients), it shows the posting status of an upload. After Posting Acceptor is installed, the sample page can be found in the scripts directory. Note: IE clients should use the sample page uploadx.asp.
The Microsoft ActiveX Upload Control can be used in a variety of ways to allow for the simple drag and drop publishing of web content. The control allows for publishing over a variety of protocols. It enters the various pieces of information usually needed to publish content by means of FTP or even through the Web Publishing Wizard. Instead, the server administrator sets this information in the web page that calls the Microsoft ActiveX Upload Control. This document explains the various ways to tie the control into products such as Microsoft Posting Acceptor and the Microsoft Site Server Content Replication System. When authoring a page to use the Upload Control, the Web Publishing Provider can be defined in several different ways. The standard method is to create a PostInfo file on the server that hosts the content and have it define the provider to use (by CLSID) and the relevant parameters. Details of all Microsoft Service Provider parameters are found in the PostInfo section at the end of this document. Sample PostInfo File The following sample uses the HTTP Post Provider and Microsoft Posting Acceptor.
<% Response.Buffer = TRUE %>
Version=1.5
The PostInfo file is retrieved by the Web Publishing API by querying the default document of the server hosting the Web page using the Upload Control Web server and parsing for the PostInfo meta tag. This tag needs to be added to that document in the following format: <META name="postinfo" content="/scripts/postinfo.asp"> The PostInfo file can have any extension and live anywhere on any web server. The content value can be a relative path or any fully qualified URL. It can be dynamically generated based on the retrieving user's data or anything else you wish to use. Another option is to define this information in the Web page hosting the control. This is done by using the SetBindingParam call within the page. See below for a definition and an example of the SetBindingParam call. The Upload control allows you to define the site information as temporary or permanent. A temporary site would be used when much of the underlying site information might change from user post to post. A permanent site would be used when the target URL, posting URL, and so on are to remain constant from user post to post, such as in a setup for a user's personal Web page. The following is a list of all the properties and methods exposed by the ActiveX Upload Control. AboutBox Displays the Upload Control About Box. FoundPostInfo SetBindingParam
void SetBindingParam(
This method allows the content author to set the Provider-specific WebPost server variables that would normally be in a PostInfo file. These variables are described for each provider in the section on POSTINFO files found below.
CreateTempBinding
HRESULT CreateTempBinding(
Creates a temporary site and binds to it. This site will be deleted when the user shuts down the browser.
CreatePermBinding
CreatePermBinding(
Creates a permanent site and binds to it. The site information is persistent--it will remain on the user's machine even after the browser is shut down.
UploadedFile
void UploadedFile(
This event is raised after the object dropped on the Upload Control has either been successfully uploaded or the transmission has failed.
Sample Web Page #1 The following sample page uses the CRS Provider, creates a permanent site definition on the user's machine, does not need a PostInfo file and will return an error dialog box to the user should a problem occur when posting the content.
<HTML>
<BODY LEFTMARGIN=20 TOPMARGIN=20 BGCOLOR=#FFFFFF TEXT=#000000 LINK=#FF0066 VLINK=#330099 ALINK=#000000 language="VBS" onload="InitializeControl"> <FONT FACE="ARIAL" SIZE=2>
<CENTER>
<H3>File Upload</H3>
<SCRIPT LANGUAGE="VBS">
Sub InitializeControl
FlUpl1.CreatePermBinding "MyCRSSite", "http://your-file-name_crs/uploads/etc", "{FFCF1E40-7978-11D0-B1C9-00AA006DCDF4}"
End Sub
Sub Flupl1_UploadedFile(szFileName, ErrorCode, szErrorMsg)
</SCRIPT> <P ALIGN=CENTER><FONT SIZE=2><B>For more information on VB Script, visit the <A TARGET="_top" HREF="/vbscript/default.htm">VB Script site.</A></B></FONT> </FONT>
</BODY>
Sample Web Page #2 The following sample page uses the HTTP Post Provider, creates a permanent site definition on the user's machine, is set to handle not having a PostInfo file and will return an error dialog box to the user should a problem occur when posting the content.
<HTML>
</HEAD> <BODY BGCOLOR="#000000" TOPMARGIN=4 LINK="#FFFFFF" TEXT="#FFFFFF" Language="VBScript" OnLoad="InitializeControl"> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 NOWRAP ALIGN=LEFT> <TR>
<OBJECT
<FONT FACE="ARIAL" SIZE="2"><B>Web Post:RFC (server_name/users)</B></FONT>
<SCRIPT LANGUAGE="VBScript">
If (IFlUpl1.FoundPostInfo=0) Then
Sub IFlupl1_UploadedFile(szFileName, ErrorCode, szErrorMsg)
</SCRIPT> </TD></TR></TABLE>
</BODY>
PostInfo Parameters The following tables list the parameters supported by each Microsoft Service Provider. When writing a PostInfo file for a server, as many parameters as possible should be specified for each Service Provider the server will support, in order to minimize the amount of information that must be entered by a user.
The CLSID's for the Microsoft Service Providers
FTP Service Provider
HTTP POST Service Provider
For assistance with Microsoft Posting Acceptor, please access the Microsoft newsgroup: news://msnews/microsoft.public.site.posting-acceptor
|