Sample code for 30+ languages & platforms
Classic ASP

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

set http = Server.CreateObject("Chilkat.Http")
url = "https://example.com/folder/page?lang=en&sort=asc#section2"
Response.Write "<pre>" & Server.HTMLEncode( http.GetUrlPath(url)) & "</pre>"

' Output:

' /folder/page

%>
</body>
</html>