> ## 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 和方法。

## 語法

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

### 參數

*call*   \_In\_\
類型：HCCallHandle

HTTP 呼叫的控制代碼。

*method*   \_Outptr\_\
類型：char\*\*

HTTP 呼叫的 UTF-8 編碼方法。

*url*   \_Outptr\_\
類型：char\*\*

HTTP 呼叫的 UTF-8 編碼 URL。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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