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

設定 HTTP 呼叫的要求本文位元組。

## 語法

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

### 參數

*call*   \_In\_\
類型：[XblHttpCallHandle](/zh-TW/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 呼叫的控制代碼。

*requestBodyBytes*   \_In\_reads\_bytes\_(requestBodySize)\
類型：uint8\_t\*

HTTP 呼叫的要求本文位元組。

*requestBodySize*   \_In\_\
類型：uint32\_t

所設定本文的長度 (以位元組為單位)。

### 傳回值

類型：HRESULT

此 API 作業的結果碼。可能的值為 S\_OK、E\_INVALIDARG、E\_OUTOFMEMORY 或 E\_FAIL。

## 備註

必須在呼叫 [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 之前呼叫此函式。

## 需求

**標頭：** http\_call\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

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


## Related topics

- [XblHttpCallRequestSetRequestBodyBytes](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallRequestSetRequestBodyBytes](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodybytes.md)
