且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 SimpleXML 和 PHP 通过 https 获取 XML 内容的问题

更新时间:2022-04-23 04:04:50

您正在使用 www.casapilot.com 网站的 XML API.

You are using the XML API of the www.casapilot.com website.

API 通过 HTTPS,一个示例 URI 是:

The API is via HTTPS, one example URI is:

https://www.casapilot.com/api/1/accommodations/calendar.xml?auth_token=hyXHjP8QdrRuX8q3FsbC&id=1049165

要使 HTTPS 正常工作,PHP 需要 openssl 扩展.该信息在相关的Stream Wrapper Page 上提供:

For HTTPs to work, PHP needs the openssl extension. The information is given on the related Stream Wrapper Page:

注意: HTTPS 仅在启用 openssl 扩展时支持.

Note: HTTPS is only supported when the openssl extension is enabled.

openssl 扩展然后透明地用于所有 HTTPS文件",并为所有以 https:// 开头的 URI 使用流包装器.

The openssl extension is then used for all HTTPS "files" transparently with the stream-wrapper for all URIs starting with https://.

另见重复问题: