> ## 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 ベースのインデックス位置にある要求ヘッダーを取得します。

## 構文

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

### パラメーター

*call*   \_In\_\
型: HCCallHandle

HTTP 呼び出しのハンドル。

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

要求ヘッダーの特定の 0 ベースのインデックス。

*headerName*   \_Out\_\
型: char\*\*

HTTP 呼び出しの UTF-8 エンコードされた要求ヘッダー名。

*headerValue*   \_Out\_\
型: char\*\*

HTTP 呼び出しの UTF-8 エンコードされた要求ヘッダー値。

### 戻り値

型: HRESULT

この API 操作の結果コード。取り得る値は S\_OK、E\_INVALIDARG、または E\_FAIL です。

## 解説

HTTP 呼び出しに含まれる要求ヘッダーの数を知るには、HCHttpCallRequestGetNumHeaders() を使用します。

## 要件

**ヘッダー:** httpProvider.h

**ライブラリ:** libHttpClient.GDK.lib

## 関連項目

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


## Related topics

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