代码之家  ›  专栏  ›  技术社区  ›  Brad The App Guy

在雅虎管道中使用HTTPS资源?

  •  4
  • Brad The App Guy  · 技术社区  · 17 年前

    可以在Yahoo Pipes的URLBuilder中使用HTTPS:资源吗?

    我很容易使用HTTP:,但当我将其更改为HTTPS时:我会收到一个错误。

    3 回复  |  直到 10 年前
        1
  •  10
  •   ax. Clement Herreman    16 年前

    你可以通过“代理”你的https url来绕过不支持https的雅虎管道 YQL (Yahoo! Query Language) ,它确实支持https。雅虎管道有来源>YQL模块,您可以通过YQL查询传递https url,如下所示:

    select * from rss where url='https://example.com/example.rss'
    

    通过此查询,YQL模块将返回原始https提要中的所有项目。

    [通过 HTTPS, Pipes and YQL ]

        2
  •  7
  •   HitScan    17 年前

    Yahoo Pipes does not support https .

    有可能设置自己的代理服务器来为您进行SSL获取,并通过http重新提供内容,但这是我从未尝试过的。

        3
  •  6
  •   Dan Dyer    17 年前

    这将完成工作:

    <?php
        $feed_contents = file_get_contents('https://example.com/feed.rss');
        header('Content-Type: application/rss+xml');
        echo $feed_contents;
    ?>