> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallGetResponseString

> XblHttpCallGetResponseString

# XblHttpCallGetResponseString

Obtient la chaîne du corps de la réponse de l'appel HTTP.

## Syntaxe

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

### Paramètres

*call*   \_In\_\
Type : [XblHttpCallHandle](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle.md)

Handle de l'appel HTTP.

*responseString*   \_Out\_\
Type : char\*\*

Chaîne du corps de la réponse encodée en UTF-8 de l'appel HTTP. La mémoire du pointeur de chaîne retourné reste valide pendant toute la durée de vie de l'objet XblHttpCallHandle, jusqu'à ce que XblHttpCallCloseHandle() soit appelé sur celui-ci.

### Valeur de retour

Type : HRESULT

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

## Remarques

Ce code peut uniquement être appelé après l'appel de [XblHttpCallPerformAsync](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md), une fois la tâche HTTP terminée. Ce résultat n'est valide que si le type de réponse (responsetype) passé à PerformAsync était String.

## Configuration requise

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

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

## Voir aussi

[http\_call\_c](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/http_call_c_members.md)


## Related topics

- [http_call_c](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/http_call_c_members.md)
- [Vue d'ensemble des requêtes web](https://docs.xbox.com/fr/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallResponseGetResponseString](https://docs.xbox.com/fr/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetresponsestring.md)
- [XblHttpCallResponseBodyType](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/enums/xblhttpcallresponsebodytype.md)
- [XblHttpCallGetResponseBodyBytes](https://docs.xbox.com/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytes.md)
