Perl File :: Fetch失败的HTTP响应:500内部服务器错误 [英] Perl File::Fetch Failed HTTP response: 500 Internal Server Error

查看:98
本文介绍了Perl File :: Fetch失败的HTTP响应:500内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个简单的perl脚本来尝试从以下URL下载文件: http://www.londonstockexchange.com/products -and-services/trading-services/setsqx/ccp-securities.xls

I'm using a simple perl script to try and download a file from the following URL: http://www.londonstockexchange.com/products-and-services/trading-services/setsqx/ccp-securities.xls

use File::Fetch;
my $url = 'http://www.londonstockexchange.com/products-and-services/trading-services/setsqx/ccp-securities.xls';
my $ff = File::Fetch->new(uri => $url);
my $file = $ff->fetch() or die $ff->error;

我得到了:

获取失败! HTTP响应:500内部服务器错误[500无法连接到www.londonstockexchange.com:80(连接:连接被拒绝)]

Fetch failed! HTTP response: 500 Internal Server Error [500 Can't connect to www.londonstockexchange.com:80 (connect: Connection refused)]

无法打开"www.londonstockexchange.com"的套接字,连接被拒绝

Could not open socket to 'www.londonstockexchange.com', 'Connection refused

有什么办法可以克服这个问题吗?

Any ideas how i can get past this?

推荐答案

无法打开"www.londonstockexchange.com"的套接字,连接被拒绝

Could not open socket to 'www.londonstockexchange.com', 'Connection refused

有什么办法可以克服这个问题吗?

Any ideas how i can get past this?

与该站点的直接连接在某处被阻止. 如果您在公司内部,则可能需要使用防火墙和某些代理.询问系统管理员.

Direct connection to this site is blocked somewhere. If you are inside a company there is probably a firewall and some proxy you are required to use. Ask your system administrator.

这篇关于Perl File :: Fetch失败的HTTP响应:500内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆