Sample code for 30+ languages & platforms
Tcl

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set http [new_CkHttp]

set url "https://example.com/folder/page?lang=en&sort=asc#section2"
puts [CkHttp_getUrlPath $http $url]

# Output:

# /folder/page

delete_CkHttp $http