Sample code for 30+ languages & platforms
C

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat C Downloads

C
#include <C_CkHttp.h>

void ChilkatSample(void)
    {
    BOOL success;
    HCkHttp http;
    const char *url;

    success = FALSE;

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

    //  Output:

    //  /folder/page


    CkHttp_Dispose(http);

    }