Sample code for 30+ languages & platforms
C++

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat C++ Downloads

C++
#include <CkHttp.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkHttp http;
    const char *url = "https://example.com/folder/page?lang=en&sort=asc#section2";
    std::cout << http.getUrlPath(url) << "\r\n";

    //  Output:

    //  /folder/page
    }