Delphi DLL
Delphi DLL
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Delphi DLL Downloads
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
success: Boolean;
http: HCkHttp;
url: PWideChar;
begin
success := False;
http := CkHttp_Create();
url := 'https://example.com/folder/page?lang=en&sort=asc#section2';
Memo1.Lines.Add(CkHttp__getUrlPath(http,url));
// Output:
// /folder/page
CkHttp_Dispose(http);
end;