HttpExtractDestAddress

Returns the destination address of the request in the specified format.

Syntax

    #include <httpexp.h>
    
    int HttpExtractDestAddress (
       HINTERNET   hndl,
       int        *pDestIPAddr,
       int        *pDestIPPort,
       char       *pzDestIPAddrBuf,
       char       *pzDestPortBuf);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pDestIPAddr
(OUT) If not NULL, points to a buffer for the IP address in binary format.
pDestIPPort
(OUT) If not NULL, points to a buffer for the port address in binary format.
pzDestIPAddrBuf
(OUT) If not NULL, points to a buffer for the IP address string in dotted decimal format.
pzDestPortBuf
(OUT) If not NULL, points to a buffer for the port address in decimal format.

Return Values

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

Decimal

Name

Description

255

ERR_BAD_PARAMETER

The hndl parameter is invalid.

Remarks

You only need to provide pointers for the values you need. The other parameters can be set to NULL.

See Also