# AddHTTPHeader

## Description

Adds the specified header to all future requests. If the header already exists then its value will be overwritten by the new value. If the header is a standard header that is normally present then its value will be overwritten by the value you give. If the header is a standard header that is normally present and the value you give is the empty string then the standard header will be removed. Do not add the colon to either field, it will be added automatically between them. Note that this command does not work in the HTML5 version.

## Definition

AddHTTPHeader( iHTTP, headerName, headerValue )

void agk::AddHTTPHeader( UINT iHTTP, const char* headerName, const char* headerValue )

## Parameters

- iHTTP - The ID of the connection to change.
- headerName - The name of the header to set, e.g. "Content-Type"
- headerValue - The new value for the header