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

Obtiene los encabezados de solicitud en un índice de base cero específico de la llamada HTTP.

## Sintaxis

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

### Parámetros

*call*   \_In\_\
Tipo: HCCallHandle

El identificador de la llamada HTTP.

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

Índice de base cero específico del encabezado de solicitud.

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

Nombre de encabezado de solicitud codificado en UTF-8 para la llamada HTTP.

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

Valor de encabezado de solicitud codificado en UTF-8 para la llamada HTTP.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API. Los valores posibles son S\_OK, E\_INVALIDARG o E\_FAIL.

## Comentarios

Use HCHttpCallRequestGetNumHeaders() para saber cuántos encabezados de solicitud hay en la llamada HTTP.

## Requisitos

**Encabezado:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

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