What features are available in my installed version of curl?

https://access.redhat.com/solutions/327823

 SOLUTION 已验证 - 已更新 2017年三月28日12:38 - 

English 

环境

  • Red Hat Enterprise Linux 5 (RHEL 5)
  • Red Hat Enterprise Linux 6 (RHEL 6)
  • Red Hat Enterprise Linux 7 (RHEL 7)

问题

  • What features are available in my installed version of curl?
  • For example, how can I confirm if there is a curl version for Red Hat Enterprise Linux 5 available which has scp/sftp support?
  • Does curl for Red Hat Enterprise Linux 7 includes a support for SPNEGO?

决议

  • Execute curl with the -V flag to display information about curl and the libcurl version it uses.

  • Red Hat Enterprise Linux 5

Raw

$ curl -V
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

The initial support for SCP and SFTP was included upstream via the 7.16.1 release. As RHEL 5 is at the end in the life cycle where Red Hat adds new functionality to components and the focus is on stability, SCP and SFTP support will not be added to the curl version available for RHEL 5.

  • Red Hat Entperise Linux 6

Raw

$ curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 
  • Red Hat Enterprise Linux 7

Raw

$ curl -V
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.15.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz 

诊断步骤

  • man curl(1)

Raw

       -V/--version
              Displays information about curl and the libcurl version it uses.

              The first line includes the full version of curl, libcurl and other 3rd party libraries linked with the executable.

              The second line (starts with "Protocols:") shows all protocols that libcurl reports to support.

              The third line (starts with "Features:") shows specific features libcurl reports to offer. Available features include:

              IPv6   You can use IPv6 with this.

              krb4   Krb4 for FTP is supported.

              SSL    HTTPS and FTPS are supported.

              libz   Automatic decompression of compressed files over HTTP is supported.

              NTLM   NTLM authentication is supported.

              GSS-Negotiate
                     Negotiate authentication and krb5 for FTP is supported.

              Debug  This curl uses a libcurl built with Debug. This enables more error-tracking and memory debugging etc. For  curl-develop-
                     ers only!

              AsynchDNS
                     This curl uses asynchronous name resolves.

              SPNEGO SPNEGO Negotiate authentication is supported.

              Largefile
                     This curl supports transfers of large files, files larger than 2GB.

              IDN    This curl supports IDN - international domain names.

              SSPI   SSPI  is  supported.  If you use NTLM and set a blank user name, curl will authenticate with your current user and pass-
                     word.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值