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

지정된 헤더 이름에 대해 HTTP 호출의 응답 헤더를 가져옵니다.

## 구문

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

### 매개 변수

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

HTTP 호출의 핸들입니다.

*headerName*   \_In\_z\_\
형식: char\*

HTTP 호출에 대한 UTF-8 인코딩된 응답 헤더 이름입니다. 반환된 문자열 포인터의 메모리는 XblHttpCallCloseHandle()이 호출될 때까지 XblHttpCallHandle 개체의 수명 동안 유효합니다.

*headerValue*   \_Out\_\
형식: char\*\*

HTTP 호출에 대한 UTF-8 인코딩된 응답 헤더 값입니다. 헤더가 존재하지 않으면 nullptr을 반환합니다. 반환된 문자열 포인터의 메모리는 XblHttpCallCloseHandle()이 호출될 때까지 XblHttpCallHandle 개체의 수명 동안 유효합니다.

### 반환값

형식: HRESULT

이 API 작업의 결과 코드입니다. 가능한 값은 S\_OK, E\_INVALIDARG 또는 E\_FAIL입니다.

## 설명

이는 HTTP 작업이 완료된 후에 [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync)를 호출한 후에만 호출할 수 있습니다.

## 요구 사항

**헤더:** http\_call\_c.h

**라이브러리:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 참고 항목

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


## Related topics

- [XblHttpCallGetHeaderAtIndex](/ko/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
- [XblHttpCallGetNumHeaders](/ko/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders.md)
- [XblHttpCallRequestSetHeader](/ko/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [HCHttpCallResponseGetHeader](/ko/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheader.md)
- [HCHttpCallRequestGetHeader](/ko/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader.md)
