HCHttpCallRequestSetUrl

Sets the url and method for the HTTP call.

Syntax

HRESULT HCHttpCallRequestSetUrl(  
         HCCallHandle call,  
         const char* method,  
         const char* url  
)  

Parameters

call   _In_
Type: HCCallHandle

The handle of the HTTP call.

method   _In_z_
Type: char*

UTF-8 encoded method for the HTTP call.

url   _In_z_
Type: char*

UTF-8 encoded URL for the HTTP call.

Return value

Type: HRESULT

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

Remarks

This must be called prior to calling HCHttpCallPerformAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient