Getting started with Janus Web Server: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "==Getting Started with Janus Web Server== How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the ser...")
 
m (typo)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Getting Started with Janus Web Server==
How the server will respond to a request from a browser is determined by the <var>[[JANUS DEFINE]]</var> and <var>[[JANUS WEB]]</var> commands for the server port. In addition to the documentation for those commands, see [[Defining Web rules|Defining Web rules]], which describes the <var class="product">Janus Web Server</var> processing controlled by the <var>JANUS WEB</var> command.


How the server will respond to a request from a browser is determined by the JANUS DEFINE command and by JANUS WEB commands for the server port. See the [[Janus Commands]] for an explanation of how '''JANUS DEFINE''' works for a Web, and [[Defining Web Rules]], which describes Janus Web Server processing based on the JANUS WEB command. The Janus TCP/IP Base Reference Manual contains complete JANUS DEFINE information, that is, for products in addition to Janus Web Server.
Sample server “rules” decks and applications are included in the <var>SIRIUS</var> file on the Sirius product tape:
 
Sample server “rules” decks and applications are included in the SIRIUS (as of version
6.8) or JANUS (for Sirius Mods versions prior to 6.8) Model 204 file that comes on the
Sirius product tape:


<ul>
<ul>
<li>To implement a server, alter one of the sample sets of rules — procedures prefixed with JANWEB_CONF — to your site's requirements. The rules can be re-executed while the server is up, and even while users are connected. So it is easy to start a Janus Web Server port and tune its configuration: just point your browser to it, and modify JANUS WEB commands and the procedures they reference until the Web Server has the right properties.</li>
<li>To implement a server, alter one of the sample sets of rules — procedures prefixed with <code>JANWEB_CONF</code> — to your site's requirements. The rules can be re-executed while the server is up, and even while users are connected. So it is easy to start a Janus Web Server port and tune its configuration: just point your browser to it, and modify <var>[[JANUS WEB]]</var> commands and the procedures they reference until the <var class="product">Web Server</var> has the right properties.</li>
<li>The SIRIUS (or JANUS) file also contains a complete Web-based application which can be used as is or altered to suit your needs. The application-level API is a simple set of $functions that provides all the power you need to write complex web=based applications.</li>
<li>The <var>SIRIUS</var> (or <var>JANUS</var>) file also contains a complete Web-based application which can be used as is or altered to suit your needs. The application-level API is a simple set of $functions that provides all the power you need to write complex web-based applications.</li>
</ul>
</ul>


Basically, incoming URLs are treated as tokens, and the Web Server can simply return the requested resources from the Model 204 procedures where they are stored (HTML, GIF files, and other binaries can be stored in Model 204 procedures).  Or, the URL can be used as a trigger to initiate a User Language application which can process forms, build custom HTML documents, or take other actions.  Janus Web Server comes with two utilities for loading files into Model 204 procedures:
Basically, incoming URLs are treated as tokens, and the Web Server can simply return the requested resources from the <var class="product">Model 204</var> procedures where they are stored (HTML, GIF files, and other binaries can be stored in <var class="product">Model 204</var> procedures).  Or, the URL can be used as a trigger to initiate a <var class="product">User Language</var> application which can process forms, build custom HTML documents, or take other actions.  <var class="product">Janus Web Server</var> comes with two utilities for loading files into <var class="product">Model 204</var> procedures:


SIRPIPE, which uses Model 204 BATCH2 threads, and SIRPUT, which uses HTTP PUT. Both of these utilities can load GIFs, JPGs, WAV files, AVI files, Adobe Portable document format files (PDFs), and any other binaries into Model 204. SIRPIPE and SIRPUT are described in detail in “Loading with the SIRPIPE and SIRPUT Utilities”.
<var>SIRPIPE</var>, which uses <var class="product">Model 204</var> <var>BATCH2</var> threads, and <var>SIRPUT</var>, which uses HTTP PUT. Both of these utilities can load GIFs, JPGs, WAV files, AVI files, Adobe Portable document format files (PDFs), and any other binaries into <var class="product">Model 204</var>. SIRPIPE and SIRPUT are described in detail in [[Loading with the SIRPIPE and SIRPUT utilities]].


In addition to these utilities, binary files can be loaded to Model 204 using the Form Based Upload utility that appears on the default home page when Janus Web Server is installed. This is described further in [[Uploading Files]]. Also, after a small set of "receive" rules are defined, HTTP-PUT uploads can be used to migrate entire directories from a local machine to Janus Web Server. To learn about HTTP PUT capabilities, see “HTTP PUT support” on page 356, and investigate the "Publish" feature of your web browser. Lastly, the [[Janus FTP Server]] lets you load directly to and from Model 204 procedure files. The [[Janus FTP Server]] is a [[Janus Sockets]] product
In addition to these utilities, binary files can be loaded to <var class="product">Model 204</var> using the "Form Based Upload" utility that appears on the default home page when <var class="product">Janus Web Server</var> is installed. This is described further in [[Uploading files to a Janus Web Server]]. Also, after a small set of "receive" rules are defined, HTTP-PUT uploads can be used to migrate entire directories from a local machine to <var class="product">Janus Web Server</var>. To learn about HTTP PUT capabilities, see [[Uploading files to a Janus Web Server#HTTP PUT support|"HTTP PUT support"]], and investigate the "Publish" feature of your web browser. Lastly, the <var class="product">[[Janus FTP Server]]</var> lets you load directly to and from <var class="product">Model 204</var> procedure files. The <var class="product">[[Janus FTP Server]]</var> is a <var class="product">[[Janus Sockets]]</var> product.


==References and links==
==See also==


<ul>
<ul>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>
<li>[[:Category:Janus Web Server $functions]]</li>
<li>[[List of Janus Web Server $functions]]</li>
<li>[[List of Janus Web Server $functions]]</li>
<li>[[Understanding Web Processing]]</li>
<li>[[Understanding Web processing]]</li>
<li>[[Janus Commands]]</li>
<li>[[Janus commands]]</li>
</ul>
</ul>


[[Category:Janus Web Server]]
[[Category:Janus Web Server]]

Latest revision as of 21:33, 7 April 2016

How the server will respond to a request from a browser is determined by the JANUS DEFINE and JANUS WEB commands for the server port. In addition to the documentation for those commands, see Defining Web rules, which describes the Janus Web Server processing controlled by the JANUS WEB command.

Sample server “rules” decks and applications are included in the SIRIUS file on the Sirius product tape:

  • To implement a server, alter one of the sample sets of rules — procedures prefixed with JANWEB_CONF — to your site's requirements. The rules can be re-executed while the server is up, and even while users are connected. So it is easy to start a Janus Web Server port and tune its configuration: just point your browser to it, and modify JANUS WEB commands and the procedures they reference until the Web Server has the right properties.
  • The SIRIUS (or JANUS) file also contains a complete Web-based application which can be used as is or altered to suit your needs. The application-level API is a simple set of $functions that provides all the power you need to write complex web-based applications.

Basically, incoming URLs are treated as tokens, and the Web Server can simply return the requested resources from the Model 204 procedures where they are stored (HTML, GIF files, and other binaries can be stored in Model 204 procedures). Or, the URL can be used as a trigger to initiate a User Language application which can process forms, build custom HTML documents, or take other actions. Janus Web Server comes with two utilities for loading files into Model 204 procedures:

SIRPIPE, which uses Model 204 BATCH2 threads, and SIRPUT, which uses HTTP PUT. Both of these utilities can load GIFs, JPGs, WAV files, AVI files, Adobe Portable document format files (PDFs), and any other binaries into Model 204. SIRPIPE and SIRPUT are described in detail in Loading with the SIRPIPE and SIRPUT utilities.

In addition to these utilities, binary files can be loaded to Model 204 using the "Form Based Upload" utility that appears on the default home page when Janus Web Server is installed. This is described further in Uploading files to a Janus Web Server. Also, after a small set of "receive" rules are defined, HTTP-PUT uploads can be used to migrate entire directories from a local machine to Janus Web Server. To learn about HTTP PUT capabilities, see "HTTP PUT support", and investigate the "Publish" feature of your web browser. Lastly, the Janus FTP Server lets you load directly to and from Model 204 procedure files. The Janus FTP Server is a Janus Sockets product.

See also