The XFRequest object is XFile's principal object. XFRequest is a non-visual file-transfer engine. It is the XFRequest object that submits the HTTP request (Post, Get, or Put) from client to server.
To create a server-side instance of the XFRequest object, use ASP's Server.CreateObject, as follows.
<% Set SAXFile = Server.CreateObject("SoftArtisans.XFRequest") %>
When creating a server-side instance of the XFRequest object, be careful to set the ProgId for the version version of XFile that you are using:
| XFRequest ProgIds | |
|---|---|
| XFileSE | SoftArtisans.XFRequest |
| XFileEE | SoftArtisans.XFRequestEE |
To create a client-side instance of the XFRequest object, use HTML's <object>
tag, as follows.
<OBJECT CLASSID="clsid:C3A57B60-C117-11D2-BD9B-00105A0A7E89" codebase="saxfile.cab" ID="SAXFile">
Classid specifies XFRequest's unique class id. The objects of XFileSE and XFileEE XFileSE and XFileEE have different classids. When setting the
XFRequest object's classid, be careful to set the appropriate classidfor the version of XFile that you are using:
| XFRequest Classids | |
|---|---|
| XFileSE | C3A57B60-C117-11D2-BD9B-00105A0A7E89 |
| XFileEE | 8B3512EF-4FF5-4aa4-9CDE-56BB03E04B9F |
Codebase specifies the location of saxfile.cab, which contains saxfile.dll
(XFRequest's dll). Id assigns a name to the created instance of XFRequest.
The XFRequest object automatically creates several sub-objects, each of which represents a part of the HTTP request (files, form elements, etc.). These objects are, XFFileCollection, XFFile Object, XFHTTPHeaderCollection Object, XFHTTPHeader Object, XFFormCollection Object, and XFFormElement Object.