【问题标题】:Perl File::Fetch Failed HTTP response: 500 Internal Server ErrorPerl File::Fetch Failed HTTP response: 500 Internal Server Error
【发布时间】:2014-12-05 13:42:03
【问题描述】:

我正在使用一个简单的 perl 脚本尝试从以下 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(连接:连接被拒绝)]

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

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

【问题讨论】:

  • 这对我来说很好用。我想这与您的本地环境、代理设置等有关。

标签: perl fetch


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 2021-09-07
    • 2023-02-20
    • 1970-01-01
    • 2018-01-17
    • 1970-01-01
    • 2018-11-06
    • 2023-03-30
    • 2018-12-29
    • 1970-01-01
    相关资源
    最近更新 更多