Sample code for 30+ languages & platforms
Delphi DLL

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat Delphi DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Http;

...

procedure TForm1.Button1Click(Sender: TObject);
var
http: HCkHttp;
domain: PWideChar;

begin
http := CkHttp_Create();

domain := CkHttp__getDomain(http,'https://chilkatsoft.com/refdoc/csharp.asp');
Memo1.Lines.Add(domain);

// Output: chilkatsoft.com

CkHttp_Dispose(http);

end;