---
id: "P:cAlgo.API.Plugin.Http"
kind: "property"
type: "T:cAlgo.API.Plugin"
url: "https://help.ctrader.com/ctrader-algo/references/General/Plugin/Http/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Plugin.Http

Member of [Plugin](https://help.ctrader.com/ctrader-algo/references/General/Plugin/index.md).

## Http

Send HTTP requests.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public Http Http {get;}
```

Python:

```python
api.Http: Http
```

### Returns

`Http` — 

### Examples

C#:

```csharp
var response = Http.Get("https://ctrader.com/");
if (response.IsSuccessful)
    Print("Received {0} characters", response.Body.Length);
else
    Print("Request failed with status code {0}", response.StatusCode);
```

Python:

```python
response = api.Http.Get("https://ctrader.com/")
if response.IsSuccessful:
    api.Print(f"Received {len(response.Body)} characters")
else:
    api.Print(f"Request failed with status code {response.StatusCode}")
```

