zoukankan      html  css  js  c++  java
  • 【转】Problems with HTTPS, HttpWebRequest, and iOS?

    We're using HttpWebRequest to hit HTTPS urls, on iOS. In Debug, local builds, etc. everything works fine. The HTTPS urls we're hitting have valid, commercially signed, perfectly normal certificates, everything checks out there. All is well.

    The app was submitted and approved by Apple. But the version with the official Seal of Approval from iTunes is unable to hit any HTTPS urls - we aren't seeing any exceptions, problems with JIT; the request appears to be sent [but isn't] and we timeout waiting for a response.

    Note that the problem is ONLY with the Apple-release build, all our builds work fine.

    Anybody seen anything like this before?

    Thanks!

    评论 ·  隐藏 3
     

    Does Unity.WWW work with HTTPS? What is WWW that HttpWebRequest doesn't have?

     

    I'm also encountering this using the 'WebClient' class.. Appearntly it's a bug in Unity's Mono. I tried using the BestHTTP plugin but encountered other problems as well. Did you have any progress with this?

     

    We ended up using Unity.WWW to get both HTTP and HTTPS working on Apple release builds.

    3条回复

     · 添加您的回复
    avatar image
    0
     

    个解答,截止sumeeton 

    Use http instead of https in the urls and that should work fine for you.

    评论 ·  隐藏 1 · 分享
     

    Unfortunately that is not an option.

    avatar image
    0
     

    个解答,截止trasa 

    Apple blocks access to HTTPS through non-approved code paths, and HttpWebRequest is not part of the approved code path. We switched our implementation around and used Unity.WWW to get around the problem.

    评论 · 分享
     
    avatar image
    0
     

    个解答,截止omrip32 

    Hi trasa, I encountered a different problem, WebClient fails because of one of it's properties being reflected (and reflection is not permitted on a Unity iOS build). I needed Download buffering and WWW does not support it so I'm using BestHTTP, which works great.

    评论 · 分享
  • 相关阅读:
    读《大道至简》第6章有感
    Java作业05(动手动脑)
    读《大道至简》第五章有感
    java作业04(动手动脑)
    域名与主机名
    STL 迭代器学习
    数组与链表增删改查效率比较
    智能指针多线程安全问题
    快速乘 学习
    关于TCP三个冗余ACK启动快速重传
  • 原文地址:https://www.cnblogs.com/mimime/p/6011088.html
Copyright © 2011-2022 走看看