---
id: "P:cAlgo.API.HttpRequest.Body"
kind: "property"
type: "T:cAlgo.API.HttpRequest"
url: "https://help.ctrader.com/ctrader-algo/references/HTTP/HttpRequest/Body/"
---

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

# HttpRequest.Body

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

## Body

Gets or sets the request body. If a GET, TRACE, HEAD, CONNECT, and OPTIONS request is performed, the value of this property is ignored.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string Body {get; set;}
```

Python:

```python
httpRequest.Body: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var request = new HttpRequest(new Uri("https://api.example.com/signals")) { Method = HttpMethod.Post };
request.Body = "{\"symbol\": \"EURUSD\", \"side\": \"buy\"}";
request.Headers.Add("Content-Type", "application/json");
Print("Status code: {0}", Http.Send(request).StatusCode);
```

Python:

```python
from System import Uri

request = HttpRequest(Uri("https://api.example.com/signals"))
request.Method = HttpMethod.Post
request.Body = '{"symbol": "EURUSD", "side": "buy"}'
request.Headers.Add("Content-Type", "application/json")
api.Print(f"Status code: {api.Http.Send(request).StatusCode}")
```

