# Web target: getting URL parameters, downloading resources using TCastleDownload

**URL:** https://forum.castle-engine.io/t/web-target-getting-url-parameters-downloading-resources-using-tcastledownload/2144
**Category:** News
**Created:** [April 25, 2026, 11:16pm UTC](https://forum.castle-engine.io/t/web-target-getting-url-parameters-downloading-resources-using-tcastledownload/2144 "2026-04-25T23:16:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [April 25, 2026, 11:16pm UTC](https://forum.castle-engine.io/t/web-target-getting-url-parameters-downloading-resources-using-tcastledownload/2144/1 "2026-04-25T23:16:34Z")

</div>

| [![random_image_from_unsplash example on web](https://forum.castle-engine.io/uploads/default/original/2X/d/d4a4658c4e43774bda8fe884b36946675399614a.png)](https://castle-engine.io/wp/wp-content/uploads/2026/04/web_castle_download_2.png "random\_image\_from\_unsplash example on web") |
| [![asynchronous_download example on web](https://forum.castle-engine.io/uploads/default/original/2X/d/d2ab0778a6d9c37e8e3dc5337be390024fa61774.png)](https://castle-engine.io/wp/wp-content/uploads/2026/04/web_castle_download_1.png "asynchronous\_download example on web") |
| [![remote_logging example on web](https://forum.castle-engine.io/uploads/default/original/2X/7/78def29d8a84609523b7a33004dac3051b8e2807.png)](https://castle-engine.io/wp/wp-content/uploads/2026/04/web_castle_download_3.png "remote\_logging example on web") |

We add 2 new features to our [web target](https://castle-engine.io/web):

1. New methods to read URL through which your page was accessed, and get query parameters of this URL. The use-case is creating webpages that react to URL parameters, e.g. expose a model viewer on URL like `https://viewer.castle-engine.io/?url=http://example.org/model.gltf` (working version of this coming soon!). Use these methods:
  - `Application.PageUrl` – get entire URL as a string,

  - `Application.PageUrlQuery` – get query part of the URL (the part from `?`), as a string,

  - `Application.PageUrlParameter` – get value of a specific query parameter,

  - `Application.PageUrlParameters` – get all query parameters as a dictionary

This API exists on all platforms, just returns nothing on non-web platforms. So you don’t need to use any `$ifdef WASI` when accessing this.

2. `TCastleDownload` class works on the _web_ now. It allows to make HTTP requests, e.g. download files or communicate with REST APIs. See [URLs, loading resources](https://castle-engine.io/url) and [Multi-player (network communication)](https://castle-engine.io/multi_player) for general usage description.

---

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [April 25, 2026, 11:19pm UTC](https://forum.castle-engine.io/t/web-target-getting-url-parameters-downloading-resources-using-tcastledownload/2144/2 "2026-04-25T23:19:24Z")

</div>


