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

# XblHttpCallGetHeaderAtIndex

> XblHttpCallGetHeaderAtIndex

# XblHttpCallGetHeaderAtIndex

Obtient les en-têtes de réponse à un index de base zéro spécifique dans l'appel HTTP.

## Syntaxe

```cpp theme={null}
HRESULT XblHttpCallGetHeaderAtIndex(  
         XblHttpCallHandle call,  
         uint32_t headerIndex,  
         const char** headerName,  
         const char** headerValue  
)  
```

### Paramètres

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

Handle de l'appel HTTP.

*headerIndex*   \_In\_\
Type : uint32\_t

Index de base zéro spécifique de l'en-tête de réponse.

*headerName*   \_Out\_\
Type : char\*\*

Nom de l'en-tête de réponse encodé en UTF-8 pour 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ée sur celui-ci.

*headerValue*   \_Out\_\
Type : char\*\*

Valeur de l'en-tête de réponse encodée en UTF-8 pour 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ée 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

Cette fonction ne peut être appelée qu'après l'appel de [XblHttpCallPerformAsync](/fr-CA/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync), une fois la tâche HTTP terminée. Utilisez [XblHttpCallGetNumHeaders](/fr-CA/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders) pour connaître le nombre d'en-têtes de réponse de l'appel HTTP.

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

- [XblHttpCallGetHeaderAtIndex](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallResponseGetHeaderAtIndex](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallRequestGetHeaderAtIndex](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [XblHttpCallGetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader.md)
