iOS 9 put URL Issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
iOS 9 put URL Issue
I am using the following command to download the contents of a CSV file into a variable:
put URL <url> into topScorersDataRaw
NOTE: <url> contains a url within quotes.
On iOS 8.4, this works perfectly, but on iOS 9.2, the variable is empty.
I have confirmed that I have internet connectivity in the iOS Simulator, because the "launch url" command works.
I am using the following:
Livecode 7.12
Xcode 7.2.1 (7C1002)
Any help you can give me is greatly appreciated.
put URL <url> into topScorersDataRaw
NOTE: <url> contains a url within quotes.
On iOS 8.4, this works perfectly, but on iOS 9.2, the variable is empty.
I have confirmed that I have internet connectivity in the iOS Simulator, because the "launch url" command works.
I am using the following:
Livecode 7.12
Xcode 7.2.1 (7C1002)
Any help you can give me is greatly appreciated.
Re: iOS 9 put URL Issue
Update:
Looking through the iOS system.log, there is the following error:
App Transport Security has blocked a cleartext HTTP resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
I don't see this as a configurable option within Livecode. Sounds like Apple have made this change their end on iOS 9.
Looking through the iOS system.log, there is the following error:
App Transport Security has blocked a cleartext HTTP resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
I don't see this as a configurable option within Livecode. Sounds like Apple have made this change their end on iOS 9.
Re: iOS 9 put URL Issue
I am going to investigate setting up https and see if this fixes the problem.
Re: iOS 9 put URL Issue
Hi richmace,
Moving to HTTPs will resolve your issue. You can also check the "Disable ATS" button in the iOS standalone settings to bypass the need to do this but we cannot guarantee how long Apple will allow this for-
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--
Moving to HTTPs will resolve your issue. You can also check the "Disable ATS" button in the iOS standalone settings to bypass the need to do this but we cannot guarantee how long Apple will allow this for-
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--
Re: iOS 9 put URL Issue
Perfect. Yes that fixed it!
Thank you ever so much
This issue has highlighted the fact that I will need secure connections, so I will get that working but at least I can release an update to my app today.
Thank you ever so much

This issue has highlighted the fact that I will need secure connections, so I will get that working but at least I can release an update to my app today.
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: iOS 9 put URL Issue
Hi richmace,
I need to do the same thing. Download the contents of a CSV file into a variable to populate a datagrid. Would you mind please sharing a little of the code you're using to accomplish this?
I need to do the same thing. Download the contents of a CSV file into a variable to populate a datagrid. Would you mind please sharing a little of the code you're using to accomplish this?
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: iOS 9 put URL Issue
Yes, of course.
The following downloads the data and populates a simple text data grid:
NOTE: substritute <url> with your url in quotes (I can't post urls on this forum). My url links to a CSV file. The data grid accepts a tab separated list of columns.
put URL <url> into dataRaw
replace ";" with tab in dataRaw
//answer (dataRaw)
set the dgText of group "Data Grid Field" to dataRaw
The following downloads the data and populates a simple text data grid:
NOTE: substritute <url> with your url in quotes (I can't post urls on this forum). My url links to a CSV file. The data grid accepts a tab separated list of columns.
put URL <url> into dataRaw
replace ";" with tab in dataRaw
//answer (dataRaw)
set the dgText of group "Data Grid Field" to dataRaw