Sample code for 30+ languages & platforms
CkPython

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat CkPython Downloads

CkPython
import chilkat

success = False

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

# Output:

# /folder/page