Tag: TIdHTTP

  • 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 use PushWoosh API in Delphi

    To use the PushWoosh API in Delphi, you will need to use an HTTP client library to send HTTP requests to the PushWoosh 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 PushWoosh API to create a new message:…