Sample code for 30+ languages & platforms
C#

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.Http http = new Chilkat.Http();
string url = "https://example.com/folder/page?lang=en&sort=asc#section2";
Debug.WriteLine(http.GetUrlPath(url));

//  Output:

//  /folder/page