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