Jump to content

Angus Robertson

  • Content Count

  • Joined

  • Last visited

  • Days Won


Angus Robertson last won the day on April 20

Angus Robertson had the most liked content!

Community Reputation

529 Excellent


About Angus Robertson

  • Birthday December 16

Technical Information

  • Delphi-Version
    Delphi 11 Alexandria

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You are not using the modern REST component TSslHttpRest, but the older harder to use component TSslHttpCli, your choice, but you have to live with more complex code. The point here is that you are responsible for determining whether you successfully connected to the HTTP server, and cleanly close everything if not, and try again. ICS is event driven, it does not wait x seconds and then decide to clean everything up for you, not even the sync modes. There will be no breaking changes to the way the HTTP client handles errors, without weeks of discussion. You need to handle this yourself. Angus
  2. Angus Robertson

    ? in URLs results in HTTP 400

    This was fixed for V9.2, in SVN and the overnight zip. Are you using one of those? Angus
  3. If your error handling code does not correctly clean up after errors, you can check , Before starting a new request, you can check State <> wsClosed before starting a request and close it. Beware, Close may not be instant, if Windows is still attempting to connect. Angus
  4. X509_get_X509_PUBKEY was added to OverbyteIcsLIBEAY;.pas for V9.1, so you probably have mixed versions, with old and new units. Angus
  5. To my eye, the two procedures seem to be identical, so I can only assume the different result is due to different parameters to the two procedures. BTW, since you are using the RawParams option in RestRequest, RestParams are ignored. Angus
  6. Authentication should now be fixed in SVN and the overnight zip. Angus
  7. Angus Robertson


    AnswerBodyTB is now in SVN and overnight zip updated. Angus
  8. Angus Robertson

    ICS V9.1 announced

    That was fixed in V9.1, or at least there are now settings that allow the HTTP clients to be used without SSL being available, for http:// only. I go to extreme lengths to keep ICS backward compatible, I know how horrible it is updating to new compilers and components when you get blizzards or IDE error messages on opening old projects, it's why some of my projects are still Delphi 2007. Rarely backward compatible is not possible, but I did spend a week or two writing documentation and updating samples explaining how to update to V9.1. Angus
  9. Angus Robertson

    ICS V9.1 announced

    The default defines are designed so that users get new applications working easily and safely, without them failing immediately because the OpenSSL DLLs can not be found. Or needing to copy those DLLs into every single different directory to which modern versions of Delphi build by default. Angus
  10. Angus Robertson

    ICS V9.1 announced

    If you undefine {$DEFINE OpenSSL_Resource_Files}, ICS will look in the ICS-OpenSSL directory for the DLLs, so how does make you in control? If you want to load the DLLs from your own specified location, like the application directory, you need to add extra code, as has always been the case with ICS, but you'll need to change other defines as well since OpenSSL is now loaded by default before any code is run. This is explained in depth in readme9, and other places. Angus
  11. Angus Robertson

    ICS V9.1 announced

    No, ICS will never contain an openssl-x64.exe file, since ICS does not use openssl.exe. Our OpenSSL zip distributions are separate for Win32 and Win64, so it is up to end users to do something if they want to combine them. SVN and the overnight zip do now correctly have the Win32 version of openssl.exe, the Win64 version was an error. Angus
  12. Thanks, I'll install them in D12. Happy to update to the latest version, but some advice for existing would be appreciated, other than all the component names have 6 on the end. Or is it simply a case of going through the DFM and PAS files with a text editor and adding that 6 to the types. Angus
  13. Angus Robertson


    ICS house style, per your original request example. Angus
  14. Angus Robertson


    Thanks, I added AnswerBodyTB which creates a TBytesStream, not tested yet since the samples don't send small streams. Angus
  15. Angus Robertson


    Do you expect AnswerBytes to be an alternate to AnswerStream, AnswerString or AnswerPage? Angus