Sample code for 30+ languages & platforms
Unicode C

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Unicode C Downloads

Unicode C
#include <C_CkHttpW.h>

void ChilkatSample(void)
    {
    BOOL success;
    HCkHttpW http;
    const wchar_t *url;

    success = FALSE;

    http = CkHttpW_Create();
    url = L"https://example.com/folder/page?lang=en&sort=asc#section2";
    wprintf(L"%s\n",CkHttpW_getUrlPath(http,url));

    //  Output:

    //  /folder/page


    CkHttpW_Dispose(http);

    }