zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

Loadrunner执行https报错Action.c(7): Error -27778: SSL protocol error when attempting to connect with hos

SSL执行HTTPS 报错 Error to with connect
2023-09-14 08:59:02 时间

一、问题说明

Loadrunner回放包含https的请求时,报一下错误:

Action.c(7): Error -27778: SSL protocol error when attempting to connect with host "blog.csdn.net"

二、发生原因

Loadrunner默认发送是通过sockets(将http转换为sockets)发送的,而sockets默认SSL的版本为SSL2和SSL3。HTTPS协议录制的脚本以SSL3版本回放时使sockets端口连接失败,会被服务器拒绝连接。

三、解决方案


1、run-time settings -->preferences-->advanced-->WININET replay instead of Sockets,勾选保存设置后,再次运行就不会报错了(设置之后使用winlnet的引擎回放脚本,但此方法仅适用于windows)