Sample code for 30+ languages & platforms
C

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat C Downloads

C
#include <C_CkHttp.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    const char *domain;

    http = CkHttp_Create();

    domain = CkHttp_getDomain(http,"https://chilkatsoft.com/refdoc/csharp.asp");
    printf("%s\n",domain);

    //  Output: chilkatsoft.com


    CkHttp_Dispose(http);

    }