开发者

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

开发者 https://www.devze.com 2022-12-31 14:18 出处:网络
When I execute this line: $client = IO::Socket::SSL->new(\"pilot-payflopro.paypal.com:443\"); my IO::Socket::SSL::errstr开发者_C百科() is

When I execute this line:

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

my IO::Socket::SSL::errstr开发者_C百科() is

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. You need a working hostname like payflow.verisign.com or what not. Read the documentation again.

0

精彩评论

暂无评论...
验证码 换一张
取 消