๐Ÿ“ฅ Download API Demo

Download API Usage:

local downloadId = gurt.download(url, filename)

Returns a unique download ID that can be used to track the download progress.

Download API Test

Click the buttons below to test the download functionality:

gurt.select("#download-image"):on("click", function() local downloadId = gurt.download("https://httpbin.org/image/png", "test-image.png") print("Started download:", downloadId) end) gurt.select("#download-text"):on("click", function() local downloadId = gurt.download("https://httpbin.org/robots.txt", "robots.txt") print("Started text download:", downloadId) end) gurt.select("#download-json"):on("click", function() local downloadId = gurt.download("https://httpbin.org/json", "sample-data.json") print("Started JSON download:", downloadId) end) gurt.select("#download-shit"):on("click", function() local downloadId = gurt.download("https://releases.ubuntu.com/24.04.3/ubuntu-24.04.3-desktop-amd64.iso", "linux.iso") end) gurt.select("#download-peak"):on("click", function() local downloadId = gurt.download("lw://127.0.0.1", "peakshit.iso") end)

Download Log

Initializing...

Download API Features:

  • gurt.download(url, filename): Initiates a download from the given URL
  • Return Value: Returns a unique download ID for tracking
  • File Types: Supports any file type (images, text, binary, etc.)
  • Large Files: Can handle large downloads like OS images
  • GURT Protocol: Supports downloading over the gurt protocol

Test Cases:

  • Image Download: PNG image from httpbin.org
  • Text Download: robots.txt file
  • JSON Download: Sample JSON data
  • Large File: Ubuntu 24.04.3 ISO (~5GB) - Use with caution!