Classic ASP
Classic ASP
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Classic ASP Downloads
<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>