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

# XblHttpCallGetResponseBodyBytes

> XblHttpCallGetResponseBodyBytes

# XblHttpCallGetResponseBodyBytes

Get the response body buffer of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallGetResponseBodyBytes(  
         XblHttpCallHandle call,  
         size_t bufferSize,  
         uint8_t* buffer,  
         size_t* bufferUsed  
)  
```

### Parameters

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

The handle of the HTTP call.

*bufferSize*   \_In\_\
Type: size\_t

The response body buffer size being passed in.

*buffer*   \_Out\_writes\_bytes\_to\_(bufferSize,*bufferUsed)\
Type: uint8\_t*

The buffer to be written to.

*bufferUsed*   \_Out\_opt\_\
Type: size\_t\*

The actual number of bytes written to the buffer.

### Return value

Type: HRESULT

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

## Remarks

This can only be called after calling [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) when the HTTP task is completed. This will only be valid if the responsetype passed to PerformAsync was Vector.

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

- [XblHttpCallGetResponseBodyBytesSize](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytessize.md)
- [HCHttpCallResponseGetResponseBodyBytes](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsebodybytes.md)
- [HCHttpCallResponseGetResponseBodyBytesSize](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsebodybytessize.md)
- [HCHttpCallResponseSetResponseBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md)
- [HCHttpCallResponseAppendResponseBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallresponseappendresponsebodybytes.md)
