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

Obtém os cabeçalhos de solicitação em um índice específico baseado em zero na chamada HTTP.

## Sintaxe

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

### Parâmetros

*call*   \_In\_\
Tipo: HCCallHandle

O identificador da chamada HTTP.

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

Índice específico baseado em zero do cabeçalho de solicitação.

*headerName*   \_Out\_\
Tipo: char\*\*

Nome do cabeçalho de solicitação codificado em UTF-8 da chamada HTTP.

*headerValue*   \_Out\_\
Tipo: char\*\*

Valor do cabeçalho de solicitação codificado em UTF-8 da chamada HTTP.

### Valor retornado

Tipo: HRESULT

Código de resultado desta operação de API. Os valores possíveis são S\_OK, E\_INVALIDARG ou E\_FAIL.

## Comentários

Use HCHttpCallRequestGetNumHeaders() para saber quantos cabeçalhos de solicitação existem na chamada HTTP.

## Requisitos

**Cabeçalho:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Confira também

[httpProvider](/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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