HttpAddResponseHeaderLocationTag

Appends a Location attribute to an HTTP Response Header using the provided URL.

Syntax

    #include <httpexp.h>
    
    int HttpAddResponseHeaderLocationTag (
      HINTERNET    hndl,
      char        *pzURL);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pzURL
(IN) Points to an ASCIIZ URL string.

Return Values

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

Decimal

Name

Description

168

ERR_ACCESS_DENIED

The HttpSendResponseHeader function has already been called.

255

ERR_BAD_PARAMETER

Invalid handle.