Skip to main content

XblHttpCallRequestSetRequestBodyBytes

Set the request body bytes of the HTTP call.

Syntax

Parameters

call   _In_
Type: 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.

Requirements

Header: http_call_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

http_call_c
Last modified on August 4, 2026