Re: curl_easy_perform() failed: Couldn't connect to server #yocto #linux

Khem Raj

On Fri, Dec 11, 2020 at 9:51 AM <> wrote:

On Fri, Dec 11, 2020 at 09:04 AM, Khem Raj wrote:

On 12/11/20 2:26 AM, wrote:


I'm trying to do HTTPS POST using curl with CA certificate, but I got an
error as "curl_easy_perform() failed: Couldn't connect to server". The
same code works on a Linux machine but not on my target board, I can't
understand what I'm missing. I have an active internet connection
without any firewall. Kindly please give any suggestions.

check what all packageconfig is being used are you using gnutls, then
you might want to try nss or openssl and see if that helps.
hard to say, unless more details are available, usually runtime deps
and build time deps are handled fine but there might
be some outliers.

Thanks & Regards,

Hi Khem Raj,

Thanks for the reply. I had installed openssl and curl, but not gnutls because compilation was successful. I’ll definitely try ur suggestion. Thank you!

Please correct me if I’m wrong, even if dependent packages are not installed on target system will compilation done successfully? I’m
also facing similar issue with zbar, compilation was successful and perfectly executing on Linux PC, but not my target board even after installing zbar package.

Thanks & Regards,
Vijay Rakesh.

Join to automatically receive all group messages.