HttpAddRequestHeaderTransferEncodingChunked

Adds a transfer encoding chunked tag to the header.

Syntax

    #include <httpexp.h>
    #include <httpclnt.h> 
     
    int HttpAddRequestHeaderTransferEncodingChunked (
       HINTERNET   hndl);
    

Parameters

hndl
(IN) Specifies the connection handle returned from HttpConnect.

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

The HttpAddRequestHeaderTransferEncodingChunked function must be called after a request has been opened (with HttpOpenRequest) but before the request is sent.

See Also