> ## 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.

# XblHttpCallGetRequestUrl

> XblHttpCallGetRequestUrl

# XblHttpCallGetRequestUrl

获取 HTTP 调用的请求 URL。

## 语法

```cpp theme={null}
HRESULT XblHttpCallGetRequestUrl(  
         XblHttpCallHandle call,  
         const char** url  
)  
```

### 参数

*call*   \_In\_\
类型：[XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 调用的句柄。

*url*   \_Out\_\
类型：char\*\*

HTTP 调用的 UTF-8 编码 URL 正文字符串。返回字符串指针的内存在 XblHttpCallHandle 对象的生命周期内有效，直到对其调用 XblHttpCallCloseHandle()。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** http\_call\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [HCHttpCallRequestGetUrl](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgeturl.md)
- [HCHttpCallGetRequestUrl](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallgetrequesturl.md)
- [HCHttpCallRequestSetUrl](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestseturl.md)
- [XblHttpCallRequestSetLongHttpCall](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
- [XblHttpCallRequestSetRequestBodyBytes](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
