qt使用curl访问url
Curl is a command line tool and library which implements protocols like HTTP, HTTPS, FTP etc. Curl also supports HTTPS protocol which is secure version of the HTTP. Using curl may create some problems. We will examine how to solve these curl HTTPS related problems.
Curl是一个命令行工具和库,可实现HTTP,HTTPS,FTP等协议。Curl还支持HTTPS协议,该协议是HTTP的安全版本。 使用curl可能会产生一些问题。 我们将研究如何解决这些与HTTPS curl相关的问题。
安装卷发 (Install Curl)
We will start with the installation of the curl
tool with the following command.
我们将使用以下命令开始安装curl
工具。
Ubuntu,Debian,Mint,Kali: (Ubuntu, Debian, Mint, Kali:)
$ sudo apt install curl
Fedora,CentOS,RHEL: (Fedora, CentOS, RHEL:)
$ sudo yum install curl
SSL / TLS问题 (SSL/TLS Problems)
Especial in self-signed or expired X.509 or SSL/TLS certificates may create problems. The error detail is printed to the terminal. As an example, we will try to access https://www.wikipedia.com and we will get an error like
特别是自签名或已过期的X.509或SSL / TLS证书可能会造成问题。 错误详细信息将打印到终端。 例如&#x