AddServerScriptType Method


NOTE: This method is relevant only when you call MakeArchive with URL.

Register a new server script type. Default server script types are the obvious HTM/HTML and ASP (Active Server Pages), ASPX (.NET Active Server Pages), JSP (Java Server Pages), PHP (Personal Home Pages), DLL (ISAPI DLLs), EXE (CGI executables), PL/CGI (Perl CGI scripts). Default output of CGI scripts is GIF, default output of the others is HTML.

All the scripts and executables mentioned above have one thing in common - all of them produce HTML or images, which are almost the only things client's browser "knows" to read and display without any third-party extensions. If these files will not be renamed inside the web archive MHT, the result might be unpredictable. Client's browser doesn't recognize server scripts, therefore if your web archive MHT should include HTML produced by server scripts you have to register them using AddServerScriptType.

You can always return to the default state by making the following calls:

    ClearServerScriptTypes();
    AddServerScriptType("htm", "html");
    AddServerScriptType("html", "html");
    AddServerScriptType("asp", "html");
    AddServerScriptType("aspx", "html");
    AddServerScriptType("jsp", "html");
    AddServerScriptType("php", "html");
    AddServerScriptType("dll", "html");
    AddServerScriptType("exe", "html");
    AddServerScriptType("pl", "html");
    AddServerScriptType("cgi", "html");

    

ActiveX Script Syntax

Show Syntax

ActiveX C++ Syntax

Show Syntax

Library C++ Syntax

Show Syntax


- WebArchiveX API - WebArchiveX Website - C Systems Website


C Systems - Creative software solutions since 1996. All rights reserved. Terms of use.