Sample code for 30+ languages & platforms
Delphi ActiveX

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat Delphi ActiveX Downloads

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

...

procedure TForm1.Button1Click(Sender: TObject);
var
http: TChilkatHttp;
domain: WideString;

begin
http := TChilkatHttp.Create(Self);

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

// Output: chilkatsoft.com
end;