HTTPS request returning 2032 Stream Error only for Android with Flex 4.6 Mobile

前端 未结 4 1776
小鲜肉
小鲜肉 2021-01-19 17:30

I have a mobile app that I targeted for iOS and Android. It makes a login request via HTTPS (using a POST with HTTPService)..Everything works fine while debugging on my dev

4条回答
  •  滥情空心
    2021-01-19 18:04

    I've just experienced this issue on Android using AIR 25.0.0.134. IOS and Desktop had no issues using the same code.

    I discovered the issue was that the URL I was using had extra (invisible) characters. i.e. %A0

    The solution was to escape the url and remove all instances of %A0, then unescape and continue to download the file.

    var url:String = String(escape(ev.target.data)).replace(/%0A/gi, ""); 
    downloadThisFile(unescape(url));
    

提交回复
热议问题