Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TWebCopy
Working with HTTPS

When using HTTPS, make sure to set Authenticate to waAuto or waAlways. When HTTPUserID is an empty string and Authenticate is either waAlways or waAuto, WebCopy will show a dialog to prompt for the HTTP username and password. Otherwise, the preset username and password is used:
with WebCopy.Items.Add do  
begin  
   URL := 'https://www.tmssoftware.com/webcopy.zip';  
   Protocol := wpHTTP;  
   FileDate := EncodeDate(2002,3,18);  
   CopyNewerOnly := true;  
   TargetDir := 'c:\temp';  
   Authenticate := waAlways;
   HTTPUserID := 'myhttpuserid';
   HTTPPassword := 'myhttppassword';
end;  
WebCopy.Execute;