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

# HCHttpCallRequestGetHeader

> HCHttpCallRequestGetHeader

# HCHttpCallRequestGetHeader

根据给定的标头名称，获取该 HTTP 调用的请求标头。

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄

*headerName*   \_In\_z\_\
Type: char\*

HTTP 调用的 UTF-8 编码请求标头名称。

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

HTTP 调用的 UTF-8 编码请求标头值。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCHttpCallRequestGetHeaderAtIndex](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [HCHttpCallRequestGetNumHeaders](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders.md)
- [HCHttpCallRequestSetHeader](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
- [HCHttpCallRequestGetRequestBodyBytes](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes.md)
- [HCHttpCallRequestGetRequestBodyString](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring.md)
