Node.js
Node.js
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var http = new chilkat.Http();
var url = "https://example.com/folder/page?lang=en&sort=asc#section2";
console.log(http.GetUrlPath(url));
// Output:
// /folder/page
}
chilkatExample();