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

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

# Algo.Http

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

## Http

Send HTTP requests.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

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

### Returns

`Http` — 

### Examples

C#:

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

Python:

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

