#!/bin/ch /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */ #include int main() { class CResponse Response; chchar *status_def, *status_cur; // get the default value of the status line status_def = Response.getStatus(); // set the new status line Response.setStatus("400 Bad Request"); //Response.setStatus("401-1 Unauthorized"); // get current value of the status line status_cur = Response.getStatus(); Response.begin(); Response.title("Test of Response.setStatus and Response.getStatus"); printf("

Test of Response.setStatus and Response.getStatus


\n"); printf("The default value of the status line is : %s
\n", status_def); printf("The current value of the status line is : %s
\n", status_cur); Response.end(); }