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

# XblHttpCallRequestSetRequestBodyString

> XblHttpCallRequestSetRequestBodyString

# XblHttpCallRequestSetRequestBodyString

Définit la chaîne du corps de la requête de l'appel HTTP.

## Syntaxe

```cpp theme={null}
HRESULT XblHttpCallRequestSetRequestBodyString(  
         XblHttpCallHandle call,  
         const char* requestBodyString  
)  
```

### Paramètres

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

Handle de l'appel HTTP.

*requestBodyString*   \_In\_z\_\
Type : char\*

Chaîne du corps de la requête encodée en UTF-8 de l'appel HTTP.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY ou E\_FAIL.

## Remarques

Cette fonction doit être appelée avant l'appel de [XblHttpCallPerformAsync](/fr-CA/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Configuration requise

**En-tête :** http\_call\_c.h

**Bibliothèque :** Microsoft.Xbox.Services.14x.GDK.C.lib

## Voir aussi

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


## Related topics

- [XblHttpCallRequestSetRequestBodyString](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodystring.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallRequestSetRequestBodyString](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodystring.md)
