相关疑难解决方法(0)

Perl LWP :: UserAgent,https到特定https网站的代理,未知协议错误

阅读我能找到的关于主题的所有内容......无法确定如何使其成功.

我使用新更新的(2015年1月9日)Active State Perl和标准方法

my $ua=LWP::UserAgent->new();  
$ua->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/33.0');
$ua->timeout(120);
$ua->cookie_jar( {} );
$ua->proxy(['https'],'https://199.200.120.140:8089') #taken from http://proxylist.hidemyass.com/search-1308872#listable
my $response = $ua->get('https://www.comparis.ch');   #this web site I struggle with, I can connect to https://github.com for example... But I also can connect to comparis.ch through same proxy using urllib3 on Python3.4... 
Run Code Online (Sandbox Code Playgroud)

如果有人能解释如何从网站获得200?输出来自

响应返回Timeout(如果我使用http代理,或者

LWP::Protocol::https::Socket: SSL connect attempt failed error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol at E:/Perl64/lib/LWP/Protocol/http.pm line 49." 
Run Code Online (Sandbox Code Playgroud)

如果我试试

LWP::UserAgent->new(ssl_opts => { verify_hostname => 0, SSL_version => 'SSLv3' });
Run Code Online (Sandbox Code Playgroud)

然后我得到了

LWP::Protocol::https::Socket: …
Run Code Online (Sandbox Code Playgroud)

perl proxy

3
推荐指数
1
解决办法
3784
查看次数

标签 统计

perl ×1

proxy ×1