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

# HCHttpCallRequestGetRequestBodyString

> HCHttpCallRequestGetRequestBodyString

# HCHttpCallRequestGetRequestBodyString

获取该 HTTP 调用的请求正文字节。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetRequestBodyString(  
         HCCallHandle call,  
         const char** requestBody  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

*requestBody*   \_Outptr\_\
Type: char\*\*

该 HTTP 调用的 UTF-8 编码请求正文。

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

- [HCHttpCallRequestSetRequestBodyString](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodystring.md)
- [XblHttpCallRequestSetRequestBodyString](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodystring.md)
- [HCHttpCallRequestGetRequestBodyBytes](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallRequestGetRequestBodyReadFunction](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction.md)
