Hi. I was looking for the library for HTTPS requests(like requests in Python).
I found standart httpClient. But when I did request to https://github.com/ and compile my programm with -d:ssl I caught this error:
not load: (libcrypto-1_1-x64|libeay64).dll
Code:
import httpClient
var client = newHttpClient()
echo client.getContent("https://github.com")
Do you know, how to fix it? Or do you know some other Nim libraries for HTTPS requests?
OS: Windows 10
Guys,
I've got the same problem in GNU/Linux.
Hint: 88119 LOC; 12.865 sec; 89.07MiB peakmem; Debug build; proj: /home/seba/Pobrane/netw.nim; out: /home/seba/Pobrane/netw [SuccessX] Hint: /home/seba/Pobrane/netw [Exec] could not load: libcrypto.so(.1.1|.1.0.2|.1.0.1|.1.0.0|.0.9.9|.0.9.8|.47|.46|.45|.44|.43|.41|.39|.38|.10|) compile with -d:nimDebugDlOpen for more information Error: execution of an external program failed: '/home/seba/Pobrane/netw '
It looks like libcrypto is present:
[seba@sebapc ~]$ ls -l /usr/lib | grep libcrypto lrwxrwxrwx 1 root root 16 05-24 21:14 libcrypto.so -> libcrypto.so.1.1
Tried with nim from choosenim and the result isthe same. Bashrc files contains nimble and nim added to path.
Maybe openssl should be in devel version?