Author Topic: TFPHTTPClient.Get fails under OpenBSD  (Read 1650 times)


  • Full Member
  • ***
  • Posts: 200
TFPHTTPClient.Get fails under OpenBSD
« on: November 10, 2020, 05:24:14 pm »
There is a small test program here:
It can be used like this:
Code: Bash  [Select][+][-]
  1. fpc testhttps.pas
  2. testhttps youtube.html
This works under Linux, FreeBSD and Solaris, but fails under OpenBSD with the following error message:
Code: Text  [Select][+][-]
  1. Exception: ESocketError: Host name resolution for "" failed.
  2. GET failed. Response code: 0
Here is a screenshot too:

I've found this very similar topic, but despite the marker, the problem was not solved in there at all, only workarounds have been introduced. I already have my own workaround, so i would like to know if this can be solved, or this is a bug in FPC and can only be worked around.


TinyPortal © 2005-2018