IBM AS-400E manual
Summary of contents
- Contents
- About HTTP Server for AS/400 Web Programming Guide(GC41-5435)
- Conventions in this book
- AS/400 Operations Navigator
- Installing Operations Navigator
- Prerequisite and related information
- How to send your comments
- Chapter 1. Writing Common Gateway Interface Programs
- Overview of the CGI
- CGI and Dynamic Documents
- Uses for CGI
- The CGI process
- Overview
- Sending Information to the Server
- Data Conversions on CGI Input and Output
- CGI Input Conversion Modes
- DBCS Considerations
- CGI Output Conversion Modes
- Returning Output from the Server
- How CGI Programs Work
- Parsing
- Data manipulation
- Response generation
- Environment variables
- Requests from Standard Search (ISINDEX) Documents
- Passing SSL Environment Variables to a CGI Program
- CGI Programs and AS/400 Activation Groups
- AS/400 Activation Groups
- CGI Considerations
- Activation Group Problem Examples
- Chapter 2. Application Programming Interfaces
- APIs for CGI applications
- Get Environment Variable (QtmhGetEnv) API
- Required parameter group
- Error messages
- Put Environment Variable (QtmhPutEnv) API
- Required parameter group
- Error messages
- Read from Stdin (QtmhRdStin) API
- Required parameter group
- Error Messages
- Write to Stdout (QtmhWrStout) API
- Required parameter group
- Error messages
- Convert to DB (QtmhCvtDB) API
- Required parameter group
- Error messages
- Parse QUERY_STRING Environment Variable or Post stdindata (QzhbCgiParse) API
- Required parameter group
- CGII0200 Format
- Field descriptions
- Error messages
- Produce Full HTTP Response (QzhbCgiUtils) API
- Error messages
- Configuration APIs
- Convert URL to Path (QzhbCvtURLtoPath) API
- Authorities and locks
- Required parameter group
- Error messages
- Retrieve Directive (QzhbRetrieveDirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Retreive a list of all Configuration Names(QzhbGetConfigNames) API
- Authorities and locks
- Required parameter group
- Error messages
- Create a Configuration (QzhbCreateConfig) API
- Authorities and locks
- Required parameter group
- Error messages
- Delete a Configuration (QzhbDeleteConfig) API
- Authorities and locks
- Required parameter group
- Error messages
- Read a Configuration File into Memory (QzhbOpenConfig) API
- Authorities and locks
- Required parameter group
- Error messages
- Free a Configuration File from Memory (QzhbCloseConfig) API
- Authorities and locks
- Required parameter group
- Error messages
- Search for a Main Directive (QzhbFindDirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Search for a Subdirective under Main Directive(QzhbFindSubdirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Return Details of a Main Directive or Subdirective(QzhbGetDirectiveDetail) API
- Authorities and locks
- Required parameter group
- Error messages
- Add a Main Directive or Subdirective (QzhbAddDirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Remove a Main Directive or Subdirective(QzhbRemoveDirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Replace a Main Directive or Subdirective(QzhbReplaceDirective) API
- Authorities and locks
- Required parameter group
- Error messages
- Server instance APIs
- Retrieve a list of all Server Instances(QzhbGetInstanceNames) API
- Authorities and locks
- Required parameter group
- INSN0100 Format
- Field descriptions
- Error messages
- Look up Server Instance Data (QzhbGetInstanceData) API
- Authorities and locks
- Required parameter group
- INSD0100 Format
- Field descriptions
- Error messages
- Change Server Instance Data (QzhbChangeInstanceData) API
- Authorities and locks
- Required parameter group
- Error messages
- Create a Server Instance (QzhbCreateInstance) API
- Authorities and locks
- Required parameter group
- Error messages
- Delete a Server Instance (QzhbDeleteInstance) API
- Authorities and locks
- Required parameter group
- Error messages
- Group file APIs
- Create a new Group File (QzhbCreateGroupList) API
- Authorities and locks
- Required parameter group
- Error messages
- Read a Group File into Memory (QzhbOpenGroupList) API
- Authorities and locks
- Required parameter group
- Error messages
- Free Group File from Memory (QzhbCloseGroupList) API
- Authorities and locks
- Required parameter group
- Error messages
- Retrieve the next Group in the Group List(QzhbGetNextGroup) API
- Authorities and locks
- Required parameter group
- Error messages
- Locate a named group in a Group List (QzhbFindGroupInList)API
- Authorities and locks
- Required parameter group
- Error messages
- Retrieve the Name of a Group (QzhbGetGroupName) API
- Authorities and locks
- Required parameter group
- Error messages
- Add a new Group to the end of a Group List(QzhbAddGroupToList) API
- Authorities and locks
- Required parameter group
- Error messages
- Remove a Group from a Group List(QzhbRemoveGroupFromList) API
- Authorities and locks
- Required parameter group
- Error messages
- Retrieve the next User in the Group (QzhbGetNextUser) API
- Authorities and locks
- Required parameter group
- Error messages
- Locate a User in a Group (QzhbFindUserInGroup) API
- Authorities and locks
- Required parameter group
- Error messages
- Retrieve the Name of a User (QzhbGetUserString) API
- Authorities and locks
- Required parameter group
- Error messages
- Add a new user to the end of a Group (QzhbAddUserToGroup)API
- Authorities and locks
- Required parameter group
- Error messages
- Remove a User or Element from a Group(QzhbRemoveUserFromGroup) API
- Authorities and locks
- Required parameter group
- Error messages
- Chapter 3. Using Net.Data to Write CGI Programs for You
- Overview of Net.Data
- Chapter 4. Using Persistent CGI Programs
- Overview of Persistent CGI
- Named Activation Groups
- Accept-HTSession CGI Header
- HTTimeout CGI Header
- Considerations for using Persistent CGI Programs
- Persistent CGI Program Example
- Chapter 5. Enabling your AS/400 to run CGI programs
- How to enable the server to run CGI programs
- Using directives for security and access control
- The default fail rule
- Explicit CGI enablement
- Server runs only CGI programs
- CGI program considerations
- Chapter 6. Sample programs (in Java, C, and RPG)
- Example of Java language CGI program
- Example of C language CGI program
- Example of RPG language CGI program
- Example of a C language server configuration API program
- Chapter 7. Writing Server API programs
- Overview of the Server API
- General procedure for writing Server API programs
- Guidelines
- Basic server request process
- Application functions
- HTTP return codes and values
- Predefined functions and macros
- Return codes
- Server API configuration directives
- Server API usage notes
- Server API directives and syntax
- Server API directive variables
- Compatibility with other APIs
- Porting CGI programs
- Authentication and Authorization
- Environment variables
- Server API variables
- Chapter 8. Writing Java Servlets
- Overview of servlets
- Chapter 9. Using Server-Side Includes
- Considerations for using server-side includes
- Preparing to use server-side includes
- Format for server-side includes
- Directives for server-side includes
- Chapter 10. Troubleshooting your CGI programs
- Chapter 11. Notices
- Programming Interface Information
- Trademarks
- Readers’ Comments — We'd Like to Hear from You