HttpAddResponseHeaderContentLengthTag

Appends to an HTTP Response Header a content length attribute.

Syntax

    #include <httpexp.h>
    
    int HttpAddResponseHeaderContentLengthTag (
      HINTERNET    hndl,
      UINT32       FileSizeHigh,
      UINT32       FileSizeLow);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
FileSizeHigh
(IN) Specifies the value of the upper 32 bits of a 64-bit file size.
FileSizeLow
(IN) Specifies the value of the lower 32 bits of a 64-bit file size.

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.