Reading files from the internet server

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Reading files from the internet server

Post by Neurox66 » Fri Apr 04, 2014 5:01 pm

I've a strange problem (and big problem).
My apps (iOS and Android) update the images gallery and
update the news by reading a files on my server on internet (Aruba an italian provider).
The files are in xml format.
I reading the files with this code :

Code: Select all

put url "http://../images.xml" into tXMLData
The strange thing is that I've updated the xml file on the server but the application
does not read the new file again, return to the old file.
This happens only for the iOS version (I've tested on 5,6,7 with same results), on Android does not have this problem.
Is it possible that a cache problem?
How to solve it?

Any hints?
Paolo

P.S:
Using LiveCode 6.6
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Reading files from the internet server

Post by Simon » Fri Apr 04, 2014 5:19 pm

To avoid cache problems I believe it's
put url ("http://../images.xml?x=" & the seconds) into tXMLData

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Reading files from the internet server

Post by Jellicle » Fri Apr 04, 2014 9:17 pm

Yep a cache issue. Simon's solution may work - it depends on the server. Some auto-forward URLs like that to an error page,which is no help at all!

See bug http://quality.runrev.com/show_bug.cgi?id=10672.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: Reading files from the internet server

Post by Neurox66 » Tue Apr 08, 2014 10:11 am

Hi,
thanks for suggestion.
It's seem working. :D

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Post Reply