HttpAddRequestHeaderContentLengthTag

Adds the content length header tag to the HTTP header.

Syntax

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

Parameters

hndl
(IN) Specifies the connection handle returned from HttpConnect.
FileSizeHigh
(IN) Specifies the most significant 32-bits of the 64-bit length in the body of the request.
FileSizeLow
(IN) Specifies the least significant 32-bits of the 64-bit length in the body of the request.

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.

See Also