Ruby
Ruby
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Ruby Downloads
require 'chilkat'
success = false
http = Chilkat::CkHttp.new()
url = "https://example.com/folder/page?lang=en&sort=asc#section2"
print http.getUrlPath(url) + "\n";
# Output:
# /folder/page