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

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

## Sintaxis

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

### Parámetros

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

El identificador de la llamada HTTP.

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

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

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

Nombre del encabezado de respuesta codificado en UTF-8 para la llamada HTTP. La memoria del puntero de cadena devuelto sigue siendo válida durante la vida del objeto XblHttpCallHandle hasta que se llame a XblHttpCallCloseHandle() en él.

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

Valor del encabezado de respuesta codificado en UTF-8 para la llamada HTTP. La memoria del puntero de cadena devuelto sigue siendo válida durante la vida del objeto XblHttpCallHandle hasta que se llame a XblHttpCallCloseHandle() en él.

### Valor devuelto

Tipo: HRESULT

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

## Comentarios

Solo se puede llamar a esto después de llamar a [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) cuando la tarea HTTP se haya completado. Use [XblHttpCallGetNumHeaders](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders) para saber cuántos encabezados de respuesta hay en la llamada HTTP.

## Requisitos

**Encabezado:** http\_call\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Consulte también

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [HCHttpCallResponseGetHeaderAtIndex](/es/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallRequestGetHeaderAtIndex](/es/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [XblHttpCallGetHeader](/es/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader.md)
- [XblHttpCallGetNumHeaders](/es/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders.md)
- [XblHttpCallRequestSetHeader](/es/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
