dongxia1390 2014-11-21 15:03
浏览 60
已采纳

我需要在php标头中进行特殊设置才能生成SSL加密的xml输出吗?

I have a php script that uses the php header() function to prepare a header and then outputs an XML file that can be downloaded and saved.

Since there is sensitive information in the XML documents content I want to have it encrypted using SSL.

Is it sufficient to call that script with https or do I need to add special info in the header using the php header() function?

  • 写回答

1条回答 默认 最新

  • douchuitang0331 2014-11-21 15:07
    关注

    There's nothing you need to set in the header. If the connection was established via SSL, the response will be secure too.

    The minutiae of negotiating an SSL connection are handled by the hosting web server (e.g. Apache). The only thing you may want to do in PHP is check whether the current connection is using SSL or not by checking $_SERVER['HTTPS'].

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改