@dana
You can download a simple https page in Delphi by using the Indy components that are included with Delphi. Here is an example of how you can download a simple https page using Delphi:
1 2 |
uses IdHTTP, IdSSL, IdSSLOpenSSL; |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
var IdHTTP1: TIdHTTP; begin IdHTTP1 := TIdHTTP.Create(nil); try IdHTTP1.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(IdHTTP1); IdHTTP1.HandleRedirects := True; IdHTTP1.AllowCookies := True; // Set other properties as needed // Download the page IdHTTP1.Get('https://example.com/page.html', TStream.Create); finally IdHTTP1.Free; end; end; |
1
|
IdIOHandler, IdIOHandlerStream, IdIOHandlerSocket, IdIOHandlerStack, IdSSL; |
This is a very simple example of how to download a https page using Delphi. You can further customize the code, handle errors, and parse the downloaded content as needed for your application.