首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有https的Chilkat HTTP

带有https的Chilkat HTTP
EN

Stack Overflow用户
提问于 2018-12-07 23:16:58
回答 1查看 761关注 0票数 3

我目前正在与ActiveX一起使用ChilkatHTTP2.0控件(9.3.2.0版本).我下载文件的服务器之一是切换到https,但我无法让它工作.使用http可以很好地工作,但是当我将URL更改为https时,它会返回0。

以下是Http.LastErrorText的结果:

代码语言:javascript
复制
ChilkatLog:
  Download:
    DllDate: Aug  5 2012
    UnlockPrefix: **********
    Username: BILL-DESKTOP:Bill
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    backgroundThread: 0
    url: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t12z.pgrb2.0p25.f000&lev_10_m_above_ground=on&lev_2_m_above_ground=on&lev_entire_atmosphere=on&lev_entire_atmosphere_%5C%28considered_as_a_single_layer%5C%29=on&lev_mean_sea_level=on&lev_surface=on&var_APCP=on&var_PRMSL=on&var_TCDC=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2018120712
    toLocalPath: C:\Progra~1\PCGrADS\gfs\grib\gfs_pgrbf_000.grib2
    localFileAlreadyExists: 0
    QuickGetToOutput_Download:
      qGet_1:
        simpleHttpRequest_3:
          httpMethod: GET
          requestUrl: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t12z.pgrb2.0p25.f000&lev_10_m_above_ground=on&lev_2_m_above_ground=on&lev_entire_atmosphere=on&lev_entire_atmosphere_%5C%28considered_as_a_single_layer%5C%29=on&lev_mean_sea_level=on&lev_surface=on&var_APCP=on&var_PRMSL=on&var_TCDC=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2018120712
          Connecting to web server...
          httpServer: nomads.ncep.noaa.gov
          port: 443
          Using HTTPS.
          ConnectTimeoutMs_1: 10000
          calling ConnectSocket2
          IPV6 enabled connect with NO heartbeat.
          connectingTo: nomads.ncep.noaa.gov
          dnsCacheLookup: nomads.ncep.noaa.gov
          Resolving domain name (IPV4)
          GetHostByNameHB_ipv4: Elapsed time: 140 millisec
          myIP_1: 192.168.1.38
          myPort_1: 55564
          connect successful (1)
          clientHelloMajorMinorVersion: 3.1
          buildClientHello:
            majorVersion: 3
            minorVersion: 1
            numRandomBytes: 32
            sessionIdSize: 0
            numCipherSuites: 10
            numCompressionMethods: 1
          --buildClientHello
          TlsAlert:
            level: fatal
            descrip: handshake failure
          --TlsAlert
          Closing connection in response to fatal error.
          Failed to read incoming handshake messages. (1)
          Client handshake failed. (3)
          Failed to connect to HTTP server.
          connectElapsedMs: 640
        --simpleHttpRequest_3
      --qGet_1
    --QuickGetToOutput_Download
    bFileDeleted: 1
    totalElapsedMs: 672
    ContentLength: 0
    Failed.
  --Download
--ChilkatLog

我做错了什么?

致以敬意,

帐单

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-12-09 22:55:31

您使用的是2012年的旧版本,该版本尚未实现TLS 1.2。Chilkat自那以后增加了对TLS 1.2的支持(至今已有很多年),最新版本应该可以正常工作。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53677960

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档