C API Reference -- Ns_ConnCondSetHeaders

### Ns_ConnCondSetHeaders

#### Overview

Set the value for a header field conditionally

#### Syntax

        void Ns_ConnCondSetHeaders(
        Ns_Conn *conn,
        char *field,
        char *value
        );

#### Description

The Ns_ConnCondSetHeaders function sets the value of a field if and only if the field/value pair does not already exist. The search for an existing field is not case sensitive.

#### Examples

        	/* Set a Cookie header if not already set. */
        	Ns_ConnCondSetHeaders(conn, "Cookie", "randomStuff");

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