作者:星夜幂语_525 | 来源:互联网 | 2022-12-23 20:35
IhaveanappwhereIhitaHTTPRequest我有一个应用程序,我点击HTTP请求<NSURLConnection:0x12d755110>{
I have an app where I hit a HTTP Request
我有一个应用程序,我点击HTTP请求
{ request: { URL: http://XX.XX.XX.XXX/webService/dataService.svc/SearchLocation } }
{request:
{URL:http://XX.XX.XX.XXX/webService/dataService.svc/SearchLocation}}
Now, whenever the above request is made I get the following error and no data is received in the response. After 60 Sec I get "Time Out error
". It is working fine on IOS8 and below but not working gin IOS9. Could anybody let me know what else have I got to do with this issue. Also, I have done the following changes regarding ATS for iOS9 in info.plist, but still facing the issue. Please let me know how to fix this? Thanks in advance.
现在,无论何时发出上述请求,我都会收到以下错误,并且响应中没有收到任何数据。 60秒后我得到“超时错误”。它在IOS8及以下版本上工作正常,但不适用于IOS9。谁能让我知道我还有什么与这个问题有关。另外,我在info.plist中对iOS9的ATS进行了以下更改,但仍然面临着这个问题。请让我知道如何解决这个问题?提前致谢。
Info.plist
的Info.plist
NSAppTransportSecurity
NSAllowsArbitraryLoads
NSIncludesSubdomains
NSTemporaryExceptionAllowsInsecureHTTPLoads
NSTemporaryExceptionMinimumTLSVersion
TLSv1.1
Error
错误
2015-09-22 22:19:58.333 App[751:139449] regionDidChangeAnimated>>>>>>>>>>>>>>>>>: = 40.844278,-74.130561
2015-09-22 22:19:58.344 App[751:139449] Reachability Flag Status: -R ------- networkStatusForFlags
2015-09-22 22:19:58.350 App[751:139449] request:My Device UDIDSecretKey/SecretKey>LOCATION12040.844276-74.13056225
2015-09-22 22:19:58.357 App[751:139449] -canOpenURL: failed for URL: "cydia://package/com.fake.package" - error: "This app is not allowed to query for scheme cydia"
2015-09-22 22:19:58.945 App[751:139449] theXML contains:
2015-09-22 22:19:58.959 App[751:139449] refreshLocationList maxRecordsSelected:::::::::::::20
2015-09-22 22:19:58.960 App[751:139449] refreshLocationList maxNumOfRecords:::::::::::::20
2015-09-22 22:19:58.960 App[751:139449] refreshLocationList LocationCount::::::::::::::0
2015-09-22 22:19:58.960 App[751:139449] isTempleMaxRecordChanged :::::::::::::0
3 个解决方案