Sample code for 30+ languages & platforms
Lua

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

local success = false

local http = chilkat.Http.new()
local url = "https://example.com/folder/page?lang=en&sort=asc#section2"
print(http:get_url_path(url))

-- Output:

-- /folder/page