*** START HEADER FILE SPECIFICATIONS **************************** * *Header File Name: WWWAPI * *Description: Data items for I/NET's Web Server/400 APIs. * *(C) Copyright I/Net Inc. Corporation 1995 * *Change History: * 9/15/95 - Added WwwWriteCrLf and WwwWriteHeader functions. * 12/4/95 - Added WwwGetFormVarEnum function. * 12/9/96 - Added WwwSearch call, constants, and records * *** END HEADER FILE SPECIFICATIONS ****************************** * * ************** * Constants * ************** * * ******* * Web Server/400 APIs 77 WWWGETFORMVAR PIC X(00030) VALUE "WwwGetFormVar". 77 WWWGETFORMVARENUM PIC X(00030) VALUE "WwwGetFormVarEnum". 77 WWWREAD PIC X(00030) VALUE "WwwRead". 77 WWWWRITE PIC X(00030) VALUE "WwwWrite". 77 WWWWRITECRLF PIC X(00030) VALUE "WwwWriteCrLf". 77 WWWWRITEHEADER PIC X(00030) VALUE "WwwWriteHeader". 77 WWWGETENV PIC X(00030) VALUE "WwwGetEnv". 77 WWWUNESCAPE PIC X(00030) VALUE "WwwUnEscape". 77 WWWESCAPE PIC X(00030) VALUE "WwwEscape". 77 WWWSEARCH PIC X(00030) VALUE "WwwSearch". * * ******* * Valid values for WWWSRCH API search options * (Search options may be combined/added) * The text between the HTML tags listed on the line * after the constant is included in the search when * the corresponding constant is requested 77 WWWSRCH-HTML-TITLE PIC S9(9) USAGE BINARY VALUE 2. * 77 WWWSRCH-HTML-HEAD PIC S9(9) USAGE BINARY VALUE 4. * 77 WWWSRCH-HTML-BODY PIC S9(9) USAGE BINARY VALUE 8. * 77 WWWSRCH-HTML-COMMENTS PIC S9(9) USAGE BINARY VALUE 16. * 77 WWWSRCH-HTML-HEADINGS PIC S9(9) USAGE BINARY VALUE 32. *

etc. 77 WWWSRCH-HTML-EMPHASIZED PIC S9(9) USAGE BINARY VALUE 64. * 77 WWWSRCH-HTML-ALL PIC S9(9) USAGE BINARY VALUE 126. * Search all of the above 77 WWWSRCH-IN-FILE PIC S9(9) USAGE BINARY VALUE 1. * Anywhere in the file * * ******* * Valid values for WWWSRCH API output options * (Output options -RESULT and -TERM may be combined/added) 77 WWWSRCH-LARGE-RESULT PIC S9(9) USAGE BINARY VALUE 2. * Results returned in WWWSRCH-LARGE record structure 77 WWWSRCH-SMALL-RESULT PIC S9(9) USAGE BINARY VALUE 4. * Results returned in WWWSRCH-SMALL record structure 77 WWWSRCH-SPACE-TERM PIC S9(9) USAGE BINARY VALUE 8. * Pad Title and Url fields with spaces 77 WWWSRCH-NULL-TERM PIC S9(9) USAGE BINARY VALUE 16. * Remove trailing spaces and null-terminate Title and * Url fields * * ************** * Records * ************** * * ******* * Results from WWWSRCH API are returned in this record * structure when the output option WWWSRCH-SMALL-RESULT * is requested *01 WWWSRCH-SMALL OCCURS 00001 TIMES. * 05 WWWSRCH-SMALL-RANK PIC S9(00009) BINARY. * 05 WWWSRCH-SMALL-FILE-SIZE PIC S9(00009) BINARY. * 05 WWWSRCH-SMALL-TITLE PIC X(00120). * 05 WWWSRCH-SMALL-URL PIC X(00128). * * ******* * Results from WWWSRCH API are returned in this record * structure when the output option WWWSRCH-LARGE-RESULT * is requested *01 WWWSRCH-LARGE OCCURS 00001 TIMES. * 05 WWWSRCH-LARGE-RANK PIC S9(00009) BINARY. * 05 WWWSRCH-LARGE-FILE-SIZE PIC S9(00009) BINARY. * 05 WWWSRCH-LARGE-TITLE PIC X(00120). * 05 WWWSRCH-LARGE-URL PIC X(00512).