C++
C++
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat C++ Downloads
#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
}