【发布时间】:2016-11-23 12:37:36
【问题描述】:
与 http 相比,https 中的 ob_start、ob_end_flush、ob_end 和 ob_flush 的行为是否不同?
我已经阅读了有关 http 和 https 之间区别的帖子:
Difference between http and https
Difference between HTTPS and SSL
我已经读过这篇关于 ob_start & headers 的文章:
Showing error pages when sending header with header() function
但我没有找到我需要的答案。
我的案例:
我在两个网站上使用 ob_start 刷新加载图像。 他们使用完全相同的代码。 唯一的区别是协议 - 一个是 http,一个是 https。
http 很好
使用 http 的网站会输出图像,然后继续执行脚本。
https 的行为不同
使用 https 的网站总是在脚本完全处理后输出图像。
谢谢。我很高兴有任何提示。
【问题讨论】:
标签: php http https http-headers ob-start