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

# XblHttpCallRequestSetRequestBodyBytes

> XblHttpCallRequestSetRequestBodyBytes

# XblHttpCallRequestSetRequestBodyBytes

Set the request body bytes of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallRequestSetRequestBodyBytes(  
         XblHttpCallHandle call,  
         const uint8_t* requestBodyBytes,  
         uint32_t requestBodySize  
)  
```

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

The handle of the HTTP call.

*requestBodyBytes*   \_In\_reads\_bytes\_(requestBodySize)\
Type: uint8\_t\*

The request body bytes of the HTTP call.

*requestBodySize*   \_In\_\
Type: uint32\_t

The length in bytes of the body being set.

### Return value

Type: HRESULT

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

## Remarks

This must be called prior to calling [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Requirements

**Header:** http\_call\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

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


## Related topics

- [HCHttpCallRequestSetRequestBodyBytes](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodybytes.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [XblHttpCallRequestSetRequestBodyString](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodystring.md)
- [HCHttpCallRequestGetRequestBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes.md)
- [HCHttpCallRequestGetRequestBodyString](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring.md)
