Tag: Indy
-
How can i get Internet connected state in Delphi
To check the Internet connection state in Delphi, you can use the TIdHTTP component from the Indy library. This component provides a Head method that allows you to send an HTTP HEAD request to a specified URL. You can use this method to check the connection to a known website, such as “www.google.com“. Here is…
-
How can I make partial download in Delphi
To make a partial download in Delphi, you can use the TIdHTTP component from the Indy library. Here is an example of how to use it: uses IdHTTP; var HTTP: TIdHTTP; Stream: TMemoryStream; URL: string; StartPos, EndPos: Int64; begin HTTP := TIdHTTP.Create(nil); try Stream := TMemoryStream.Create; try URL := ‘http://www.example.com/file.zip’; StartPos := 0; EndPos :=…
-
How can I upload, download and list FTP in Delphi
To perform FTP operations in Delphi, you can use the TIdFTP component from the Indy library. The Indy library is a set of Delphi components that support a variety of Internet protocols, including FTP. To install the Indy library, follow these steps: Download the Indy library from the following URL: https://www.indyproject.org/download/Sockets.zip Extract the downloaded archive…
-
How can I use Stripe API in Delphi
To use the Stripe API in Delphi, you will need to use an HTTP client library to send HTTP requests to the Stripe API and parse the responses. Here is an example of how you can use the Indy (Internet Direct) library to send a request to the Stripe API to create a new customer:…