HCSetGlobalProxy

Manually sets an explicit proxy address.

Syntax

HRESULT HCSetGlobalProxy(  
         const char* proxyUri  
)  

Parameters

proxyUri   _In_
Type: char*

The proxy address to use in the "[ip]:[port]" format.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, E_HC_NOT_INITIALISED, or E_FAIL.

Remarks

If it is passed a null proxy, it will reset to default. Does not include proxying web socket traffic.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient