C API Reference -- Ns_ConnReturnData

### Ns_ConnReturnData

#### Overview

Return an HTML string to a client

#### Syntax

        EXTERN int Ns_ConnReturnData(
        Ns_Conn *conn,
        int status,
        char *html,
        int len,
        char *type
        );

#### Description

The Ns_ConnReturnData function calls the Ns_ConnSetRequiredHeaders function with the given status followed by the given HTML string. The length is used to generate the Content-Length header. If the length is -1, the function calculates the Content-Length from the string. The type is used to generate the Content-Type header. Ns_ConnReturnData returns a status of NS_OK or NS_ERROR.

Top of Page
Copyright © 1998-99 America Online, Inc.