CURL returns (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL CURL returns (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL curl curl

CURL returns (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL


When it works via the browser and doesn't work in the same way from curl, you need to make some changes to your curl request.

The latest versions of Chrome browser supports a very good option to "copy as cURL". This is very handy and will solve most such issues.

To access this option -

  1. Open a new tab
  2. Right click to open the context menu, select Inspect and open the Network tab.
  3. Now paste the URL in the URL bar and go. It will navigate to the image.
  4. Right click on the network request that was successful and showed the image
  5. Inside the "Copy" menu, there is option to "Copy as cURL".
  6. Open a terminal and paste here. This is the curl command that will work and simulate the exact same request as the Chrome browser.

This will work in most cases and definitely works for the link given in the question.