HTTPD_write()

Writes the body of the response. Uses HTTPD_set and HTTPD_extract for headers. Valid in the PreExit, Service, NameTrans, Error, and Data Filter steps.

If you do not use HTTPD_set() to set the content type before the first time you call this function, the server assumes you are sending a CGI data stream.

You may need to use HTTPD_set() to set the CGI environment variable CONTENT_ENCODING to the appropriate code page for the content of your response before you send the data to the client.

For the Service step, the data to send is in the default job CCSID for %%MIXED%% and %%EBCIDIC%% CGI output modes unless overidden by a character CCSID tag on the content_type header. The data is %%BINARY%% mode, so it is assumed to be binary..

void

 

 

HTTPD_write(

 

 

unsigned char

*handle,

/* i; handle */

unsigned char

*value,

/* i; data to send */

unsigned long

*value_length,

/* i; length of the data */

long

*return_code);

/* o; return code */

HTTPD_log_error()

Writes a string to the server’s error log.

The string passed to HTTPD_log_error must be EBCDIC (CCSID 37) data. The server converts the strinbg to the CCSID of the error log file.

void

 

 

HTTPD_LINKAGE

 

 

HTTPD_log_error(

 

 

unsigned char

*handle,

/* i; handle */

unsigned char

*value,

/* i; data to write */

unsigned long

*value_length,

/* i; length of the data */

long

*return_code);

/* o; return code */

HTTPD_log_trace()

Writes a string to the server’s trace log.

The string passed to HTTPD_log_trace must be EBCDIC (CCSID 37) data.

void

HTTPD_LINKAGE

HTTPD_log_trace unsigned char *handle, unsigned char *value, unsigned long *value_length,

long *return_code);

/* i; handle (NULL right now) */ /* i; data to write */

/* i; length of the data */ /* o; return code */

HTTPD_restart()

Restarts the server after all active requests have been processed. Valid only in ServerInit and ServerTerm steps.

void

HTTPD_restart(

long *return_code); /* o; return code */

HTTPD_proxy()

Makes a proxy request. Valid in PreExit and Service steps.

Note: This is a completion function; the response is complete after this function.

118Web Programming Guide V4R5

Page 128
Image 128
IBM AS/400E manual HTTPDwrite, HTTPDlogerror, HTTPDlogtrace, HTTPDrestart, HTTPDproxy

AS/400E specifications

The IBM AS/400E, now more commonly known as IBM i, is a robust and versatile midrange server that has been designed to provide a comprehensive computing solution for businesses of all sizes. First introduced in the late 1980s, the AS/400 series has undergone multiple enhancements and rebranding, with the AS/400E being one of the notable iterations. This powerful platform is closely associated with IBM's commitment to reliability, scalability, and integrated business solutions.

One of the main features of the AS/400E is its highly integrated architecture that combines hardware and software into a cohesive system. This integration allows for seamless operations, reducing the complexity typically associated with managing disparate systems. The system is powered by IBM's proprietary OS/400 operating system, which has evolved into IBM i, featuring advanced capabilities like object-oriented programming, integrated database management, and security features that are essential for enterprise environments.

A key characteristic of the AS/400E is its robust database support, primarily through the use of DB2 for i. This integrated database management system enables efficient data handling and retrieval, facilitating real-time business analytics and reporting. Furthermore, the platform supports a variety of programming languages, including RPG, COBOL, and Java, making it flexible for developers who require diverse tools for application development.

The AS/400E is also known for its exceptional reliability and uptime, making it a preferred choice for critical business applications in industries such as finance, healthcare, and manufacturing. This reliability is backed by advanced error detection and correction mechanisms, as well as redundancy features that help prevent data loss and minimize downtime.

In terms of scalability, the AS/400E can effortlessly expand to accommodate growing business demands. Organizations can increase processing power by adding more resources without significant disruption. This scalability, combined with the system’s built-in virtualization capabilities, allows businesses to optimize resource usage and streamline operations.

Security is another defining feature of the AS/400E. The platform incorporates various layers of security measures, including user authentication, encryption, and comprehensive auditing capabilities, ensuring that sensitive business data is protected against unauthorized access.

Overall, the IBM AS/400E remains a powerful tool in the enterprise computing landscape, providing businesses with an integrated, reliable, and secure solution for their technological needs. Its enduring popularity is a testament to its capability to evolve with changing business requirements while maintaining its core attributes of high performance and stability.