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

# XblHttpCallGetHeader

> XblHttpCallGetHeader

# XblHttpCallGetHeader

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

## Syntax

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

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

The handle of the HTTP call.

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

UTF-8 encoded response header name for the HTTP call. The memory for the returned string pointer remains valid for the life of the XblHttpCallHandle object until XblHttpCallCloseHandle() is called on it.

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

UTF-8 encoded response header value for the HTTP call. Returns nullptr if the header doesn't exist. The memory for the returned string pointer remains valid for the life of the XblHttpCallHandle object until XblHttpCallCloseHandle() is called on it.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Remarks

This can only be called after calling [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) when the HTTP task is completed.

## Requirements

**Header:** http\_call\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallGetHeaderAtIndex](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
- [XblHttpCallGetNumHeaders](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders.md)
- [XblHttpCallRequestSetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [XblHttpCallGetRequestUrl](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetrequesturl.md)
- [XblHttpCallGetResponseString](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsestring.md)
