> ## 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 呼叫的要求標頭。

## 語法

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

### 參數

*call*   \_In\_\
類型：HCCallHandle

HTTP 呼叫的控制代碼

*headerName*   \_In\_z\_\
類型：char\*

HTTP 呼叫的 UTF-8 編碼要求標頭名稱。

*headerValue*   \_Out\_\
類型：char\*\*

HTTP 呼叫的 UTF-8 編碼要求標頭值。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallRequestGetHeaderAtIndex](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md)
- [HCHttpCallRequestGetNumHeaders](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders.md)
- [HCHttpCallRequestSetHeader](/zh-TW/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
- [XblHttpCallRequestSetHeader](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [XblHttpCallGetHeader](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader.md)
