duanchandun1860 2018-04-22 06:40
浏览 187
已采纳

从HTTP重定向到HTTPS是否具有加密?

I have an HTTPS server in Go, so that users can enter https://example.com in their browser. I'd like them to also be able to type in "example.com" to reach my HTTPS server. From this answer I see that the standard solution is to run an HTTP server that redirects to https://example.com.

I'm wondering if this is as secure as if everything were in HTTPS. In particular, if a user sends a POST request to "example.com", will the content be encrypted while it passes through the network?

  • 写回答

1条回答 默认 最新

  • duanche2007 2018-04-22 06:43
    关注

    A POST request to an HTTP server is not secure. This includes the case where the server responds to the POST with a redirect to an HTTPS server.

    Browsers automatically follow redirects. The request to the HTTPS server is secure.

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

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?