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

Gets the request headers at specific zero based index in the HTTP call.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

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

Specific zero based index of the request header.

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

UTF-8 encoded request header name for the HTTP call.

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

UTF-8 encoded request header value for the HTTP call.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Remarks

Use HCHttpCallRequestGetNumHeaders() to know how many request headers there are in the HTTP call.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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