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

# xcurl_global_suspend

> xcurl_global_suspend

# xcurl\_global\_suspend

終止作用中的 Web 要求，並防止傳送新的要求。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
void xcurl_global_suspend(
)
```

<a id="parametersSection" />

### 參數

無。

<a id="retvalSection" />

### 傳回值

無。

<a id="remarksSection" />

## 備註

<Warning>自 April 2021 GDK 起，暫停和繼續現在會在 XCurl 內部自動處理。呼叫此
函式仍然安全，但它不會執行任何作業。下列備註僅適用於
April 2021 GDK 之前的 GDK 版本。</Warning>

此函式會中止來自 easy 控制代碼的所有 HTTP 要求，並防止您傳送新的 HTTP 要求。

若要再次繼續傳送 HTTP 要求，請呼叫函式 [xcurl\_global\_resume](/zh-TW/reference/networking/xcurl/functions/xcurl_global_resume)。

就像使用 WinHttp 一樣，您必須在收到暫停事件時清除網路和 HTTP 控制代碼。

<a id="requirementsSection" />

## 需求

**標頭：** XCurl.h

**程式庫：** xcurl.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XCurl 概觀](/zh-TW/build/console-features/networking/web-requests/intro-xcurl)\
[HTTP 和 Web 通訊端](/zh-TW/build/console-features/networking/web-requests/http-networking)\
[curl](https://curl.se/)\
[xcurl\_global\_resume](/zh-TW/reference/networking/xcurl/functions/xcurl_global_resume)


## Related topics

- [xcurl_global_suspend](/reference/networking/xcurl/functions/xcurl_global_suspend.md)
- [xcurl_global_resume](/reference/networking/xcurl/functions/xcurl_global_resume.md)
