Debian Codegraph @

examples/network/castle_download/README.md

raw symbols SCIP
1 # Command-line downloader of URLs
2
3 This application downloads the URL (given as a command-line parameter) and writes result to the standard output (stdout).
4
5 This is a simple test that our `TCastleDownload` class allows you to grab any URL to a `TStream` in Pascal.
6
7 Writes diagnostic output to the log (see https://castle-engine.io/manual_log.php for information where is the log; note that we set `LogEnableStandardOutput = false`, which means that on Linux it is usually inside `~/.config/castle_download/`).
8
9 Try from command-line like
10
11 ```
12 castle_download https://castle-engine.io/ > output.html
13 castle_download https://castle-engine.io/modern_pascal_introduction.html > output.html
14 castle_download https://castle-engine.io/latest.zip > output.zip
15 ```
16
17 You can think about it as a simple replacement for `wget` or `curl` (although it's not as powerful as them, it's just a simple test of our `TCastleDownload` class).
18
19 Using [Castle Game Engine](https://castle-engine.io/).
20
21 ## Building
22
23 Compile by:
24
25 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
26
27 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
28
29 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `castle_download.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
30
31 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `castle_download.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.