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

HTTP 호출에서 0부터 시작하는 특정 인덱스의 요청 헤더를 가져옵니다.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 호출의 핸들입니다.

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

요청 헤더의 0부터 시작하는 특정 인덱스입니다.

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

HTTP 호출에 대한 UTF-8로 인코딩된 요청 헤더 이름입니다.

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

HTTP 호출에 대한 UTF-8로 인코딩된 요청 헤더 값입니다.

### Return value

Type: HRESULT

이 API 작업의 결과 코드입니다. 가능한 값은 S\_OK, E\_INVALIDARG 또는 E\_FAIL입니다.

## Remarks

HTTP 호출에 요청 헤더가 몇 개 있는지 확인하려면 HCHttpCallRequestGetNumHeaders()를 사용하십시오.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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