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

Get the request body bytes of the HTTP call.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

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

The UTF-8 encoded request body of the HTTP call.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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