Sample code for 30+ languages & platforms
Delphi ActiveX

Example: Rest.AddHeader method

Demonstrates the AddHeader 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
rest: TChilkatRest;

begin
rest := TChilkatRest.Create(Self);

rest.AddHeader('User-Agent','MyApplication/1.0');

// ...
// ...
// ...
end;