Forum > Networking and Web Programming

TFPHTTPClient.Get fails under OpenBSD

(1/1)

TCH:
There is a small test program here: http://oscomp.hu/depot/testhttps.pas
It can be used like this:
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpc testhttps.pastesthttps https://youtube.com youtube.htmlThis works under Linux, FreeBSD and Solaris, but fails under OpenBSD with the following error message:
--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Exception: ESocketError: Host name resolution for "youtube.com" failed.GET failed. Response code: 0Here 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.

Navigation

[0] Message Index

Go to full version