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

Get a request header for the HTTP call for a given header name.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call

*headerName*   \_In\_z\_\
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.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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