HttpCloseConnection

Closes a request connection.

Syntax

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

Parameters

hndl
(IN) Specifies the connection handle to close.

Return Values

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

Decimal

Name

Description

255

ERR_BAD_PARAMETER

The hndl parameter is not valid.

Remarks

The HttpCloseConnection function must be called once for every successful HttpConnect call. The function must be called even when subsequent calls after the HttpConnect call generate errors. To free all resources, it must be followed by an HttpClientClose call.

See Also