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

# HCHttpCallRequestGetHeaderAtIndex

> HCHttpCallRequestGetHeaderAtIndex

# HCHttpCallRequestGetHeaderAtIndex

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

## Syntaxe

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

### Paramètres

*call*   \_In\_\
Type : HCCallHandle

Handle de l'appel HTTP.

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

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

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

Nom d'en-tête de requête encodé en UTF-8 pour l'appel HTTP.

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

Valeur d'en-tête de requête encodée en UTF-8 pour l'appel HTTP.

### Valeur renvoyée

Type : HRESULT

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

## Remarques

Utilisez HCHttpCallRequestGetNumHeaders() pour connaître le nombre d'en-têtes de requête dans l'appel HTTP.

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

[httpProvider](/fr/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [XblHttpCallGetHeaderAtIndex](/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
- [HCHttpCallResponseGetHeaderAtIndex](/fr/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallRequestGetHeader](/fr/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader.md)
- [HCHttpCallRequestGetNumHeaders](/fr/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders.md)
- [HCHttpCallRequestSetHeader](/fr/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
