且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CURL返回(35)OpenSSL SSL_connect:SSL_ERROR_SYSCALL

更新时间:2022-11-06 22:15:34

当它通过浏览器工作并且与curl不能以相同的方式工作时,您需要对curl请求进行一些更改.

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.

最新版本的Chrome浏览器支持复制为cURL"的一个很好的选择.这非常方便,可以解决大多数此类问题.

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.

要访问此选项-

  1. 打开一个新标签页
  2. 右键单击以打开上下文菜单,选择检查"并打开网络"选项卡.
  3. 现在将URL粘贴到URL栏中并继续.它将导航到图像.
  4. 右键单击成功并显示图像的网络请求
  5. 在复制"菜单中,有复制为cURL"选项.
  6. 打开一个终端,然后粘贴到这里.这是curl命令,将起作用并模拟与Chrome浏览器完全相同的请求.

这在大多数情况下都有效,并且绝对适用于问题中给出的链接.

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