Recent

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

TCH

  • Full Member
  • ***
  • Posts: 243
    • Oldschool computer
TFPHTTPClient.Get fails under OpenBSD
« on: November 10, 2020, 05:24:14 pm »
There is a small test program here: http://oscomp.hu/depot/testhttps.pas
It can be used like this:
Code: Bash  [Select][+][-]
  1. fpc testhttps.pas
  2. testhttps https://youtube.com 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 "youtube.com" failed.
  2. GET failed. Response code: 0
Here is a screenshot too: http://oscomp.hu/depot/VirtualBox_OpenBSD64_10_11_2020_17_05_04.png

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