HttpExtractDestAddress
Returns the destination address of the request in the specified format.
#include <httpexp.h>
int HttpExtractDestAddress (
HINTERNET hndl,
int *pDestIPAddr,
int *pDestIPPort,
char *pzDestIPAddrBuf,
char *pzDestPortBuf);
If successful, returns 0. Otherwise, returns a nonzero error code.
You only need to provide pointers for the values you need. The other parameters can be set to NULL.