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