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

# HCHttpCallRequestGetHeader

> HCHttpCallRequestGetHeader

# HCHttpCallRequestGetHeader

Obtient un en-tête de requête de l'appel HTTP pour un nom d'en-tête donné.

## Syntaxe

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

### Paramètres

*call*   \_In\_\
Type : HCCallHandle

Handle de l'appel HTTP

*headerName*   \_In\_z\_\
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.

## Configuration requise

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

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

## Voir aussi

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


## Related topics

- [HCHttpCallRequestGetHeaderAtIndex](/fr/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [HCHttpCallRequestGetNumHeaders](/fr/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders.md)
- [HCHttpCallRequestSetHeader](/fr/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
- [XblHttpCallRequestSetHeader](/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [XblHttpCallGetHeader](/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader.md)
