J jamesnz Active Member Licensed User Longtime User Jul 6, 2017 #1 Code: '#ATSEnabled: True '#PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><false/> '#PlistExtra: <key>NSExceptionDomains</key><dict> 'list the excluded domains '#PlistExtra: <key>trafficnz.info</key><dict><key>NSIncludesSubdomains</key><true/><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict> 'end of excluded domains '#PlistExtra: </dict> '#PlistExtra: </dict> I'm using the above code in the project attributes and a simple httprequest like so Code: Sub getdatafromserver(thisurl As String) httpReq.Initialize("NZTA",Me) httpReq.Download(thisurl ) httpReq.GetRequest.SetHeader("username","asdasd") httpReq.GetRequest.SetHeader("password","sdfsdfsdf") End Sub Log is ResponseError: An SSL error has occurred and a secure connection to the server cannot be made., status code: 0 ErrorAn SSL error has occurred and a secure connection to the server cannot be made. This only occurs when ATS is set to true ( I realise it's not mandatory yet) This occurs even though I'm using a https:// url There is another part of my program that uses one non https url ( to download a jpg) that I have accounted for in my whilelist but the error message is not related to this, it occurs when I download from the https:// url.
Code: '#ATSEnabled: True '#PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><false/> '#PlistExtra: <key>NSExceptionDomains</key><dict> 'list the excluded domains '#PlistExtra: <key>trafficnz.info</key><dict><key>NSIncludesSubdomains</key><true/><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict> 'end of excluded domains '#PlistExtra: </dict> '#PlistExtra: </dict> I'm using the above code in the project attributes and a simple httprequest like so Code: Sub getdatafromserver(thisurl As String) httpReq.Initialize("NZTA",Me) httpReq.Download(thisurl ) httpReq.GetRequest.SetHeader("username","asdasd") httpReq.GetRequest.SetHeader("password","sdfsdfsdf") End Sub Log is ResponseError: An SSL error has occurred and a secure connection to the server cannot be made., status code: 0 ErrorAn SSL error has occurred and a secure connection to the server cannot be made. This only occurs when ATS is set to true ( I realise it's not mandatory yet) This occurs even though I'm using a https:// url There is another part of my program that uses one non https url ( to download a jpg) that I have accounted for in my whilelist but the error message is not related to this, it occurs when I download from the https:// url.
Erel B4X founder Staff member Licensed User Longtime User Jul 6, 2017 #2 Can you post the link (without the username and password)? Upvote 0
J jamesnz Active Member Licensed User Longtime User Jul 6, 2017 #3 Using https://infoconnect1.highwayinfo.govt.nz/ic/jbi/TrafficCameras2/REST/FeedService/ and https://infoconnect1.highwayinfo.govt.nz/ic/jbi/SsdfJourney2/REST/FeedService/journeys and the http one is http://www.trafficnz.info/camera/651.jpg ( no credentials req) Upvote 0
Using https://infoconnect1.highwayinfo.govt.nz/ic/jbi/TrafficCameras2/REST/FeedService/ and https://infoconnect1.highwayinfo.govt.nz/ic/jbi/SsdfJourney2/REST/FeedService/journeys and the http one is http://www.trafficnz.info/camera/651.jpg ( no credentials req)
Erel B4X founder Staff member Licensed User Longtime User Jul 6, 2017 #4 Seems like the server SSL configuration is not supported by iOS 9+ (due to it being too weak): https://www.ssllabs.com/ssltest/analyze.html?d=infoconnect1.highwayinfo.govt.nz Upvote 0
Seems like the server SSL configuration is not supported by iOS 9+ (due to it being too weak): https://www.ssllabs.com/ssltest/analyze.html?d=infoconnect1.highwayinfo.govt.nz
J jamesnz Active Member Licensed User Longtime User Jul 6, 2017 #5 ok, Ill write to them and see what they can do Cheers Upvote 0