简体   繁体   English

为什么Perl的IO :: Socket :: SSL-> new()失败?

[英]Why is Perl's IO::Socket::SSL->new() failing?

When I execute this line: 当我执行此行时:

$client = IO::Socket::SSL->new("pilot-payflopro.paypal.com:443");

my IO::Socket::SSL::errstr() is 我的IO::Socket::SSL::errstr()

configuration error
failederror:00000000:lib(0):func(0):reason(0)

my $! 我的$! is 'invalid argument' 是“无效的参数”

Has anyone run into this before? 有人遇到过吗?

It's a gethostbyname failure: the domain "pilot-payflopro.paypal.com" doesn't exist. 这是gethostbyname失败:域“ pilot-payflopro.paypal.com”不存在。 You need a working hostname like payflow.verisign.com or what not. 您需要一个有效的主机名,如payflow.verisign.com或其他。 Read the documentation again. 再次阅读文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM