> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallRequestSetLongHttpCall

> XblHttpCallRequestSetLongHttpCall

Sets a flag which defines the HTTP call as long or not.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallRequestSetLongHttpCall(  
         XblHttpCallHandle call,  
         bool longHttpCall  
)  
```

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle.md)

The handle of the HTTP call. Pass nullptr to set the default for future calls.

*longHttpCall*   \_In\_\
Type: bool

The boolean to set the HTTP call to long or not.

### Return value

Type: HRESULT

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

## Remarks

Defaults to false. This must be called prior to calling [XblHttpCallPerformAsync](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md).

## Requirements

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

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[http\_call\_c](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/http_call_c_members.md)


## Related topics

- [http_call_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/http_call_c_members.md)
- [Web requests overview](https://docs.xbox.com/build/console-features/networking/web-requests/http-networking.md)
- [XblContextSettingsSetLongHttpTimeout](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
- [HCHttpCallRequestSetTimeoutWindow](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [XblHttpCallRequestSetHeader](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
