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

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

# HttpRequest.Uri

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

## Uri

Gets or sets the request URI.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public Uri Uri {get;}
```

Python:

```python
httpRequest.Uri: Uri
```

### Returns

`Uri` — 

### Examples

C#:

```csharp
var request = new HttpRequest(new Uri("https://api.example.com/quotes/EURUSD"));
Print("Host: {0} | Path: {1}", request.Uri.Host, request.Uri.AbsolutePath);
```

Python:

```python
from System import Uri

request = HttpRequest(Uri("https://api.example.com/quotes/EURUSD"))
api.Print(f"Host: {request.Uri.Host} | Path: {request.Uri.AbsolutePath}")
```

