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

# HCHttpCallRequestGetRequestBodyBytes

> HCHttpCallRequestGetRequestBodyBytes

# HCHttpCallRequestGetRequestBodyBytes

Get the request body bytes of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetRequestBodyBytes(  
         HCCallHandle call,  
         _Outptr_result_bytebuffer_maybenull_ *requestBodySize  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

\**requestBodySize*   \
Type: *Outptr\_result\_bytebuffer\_maybenull*

The request body size in bytes 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

- [HCHttpCallRequestSetRequestBodyBytes](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodybytes.md)
- [HCHttpCallRequestGetRequestBodyString](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring.md)
- [XblHttpCallRequestSetRequestBodyBytes](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallRequestGetRequestBodyReadFunction](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction.md)
