HttpAddRequestHeaderTag

Adds header tags to the request.

Syntax

    #include <httpexp.h>
    #include <httpclnt.h> 
     
    int HttpAddRequestHeaderTag (
       HINTERNET   hndl,
       void       *pHeaders,
       UINT32      szHeadersLength);
    

Parameters

hndl
(IN) Specifies the connection handle returned from HttpConnect.
pHeaders
(IN) Points to an ASCIIZ string that is a complete HTTP header line, including the carriage-return and line-feed at the end of the line.
szHeadersLength
(IN) Specifies, in bytes, the length of the pHeaders string.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Name

Description

1

ERR_INSUFFICIENT_SPACE

Insufficient space in the response header.

168

ERR_ACCESS_DENIED

The session is not opened.

255

ERR_BAD_PARAMETER

An invalid parameter was passed to the function.

Remarks

You use the HttpAddRequestHeaderTag function to add tags that do not have specialized header tag functions.

See Also