> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HCHttpCallRequestGetUrl

> HCHttpCallRequestGetUrl

# HCHttpCallRequestGetUrl

获取该 HTTP 调用的 URL 和方法。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetUrl(  
         HCCallHandle call,  
         const char** method,  
         const char** url  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

*method*   \_Outptr\_\
Type: char\*\*

HTTP 调用的 UTF-8 编码方法。

*url*   \_Outptr\_\
Type: char\*\*

HTTP 调用的 UTF-8 编码 URL。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallGetRequestUrl](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallgetrequesturl.md)
- [XblHttpCallGetRequestUrl](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetrequesturl.md)
- [HCHttpCallRequestSetUrl](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestseturl.md)
- [HCHttpCallRequestGetTimeout](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout.md)
- [HCHttpCallRequestGetHeader](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader.md)
