Get URL anomaly
Charles Warwick
charles at techstrategies.com.au
Tue Mar 6 02:50:58 EST 2018
Hi Graham,
> On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> As in some of my previous mails, I’m talking about having to retrieve a tiny text file from a server (and later put a modified version of it back, but let’s get one problem solved at a time) The whole thing is just a few lines of code:
>
> constant myFileOnTheServer = "www.myserver.comm/mytextfile.txt”
>
> put “http://“ & myFileOnTheServer into t1
>
> get URL t1
>
> if the result is empty then
>
> do stuff with ‘it’, where the text file is placed
>
> …
I would recommend using:
put URL t1 into tData
The contents of ‘it’ can be changed by other commands, so if you are having issues in a more complex app, maybe something else is overwriting that value?
Cheers,
Charles
More information about the use-livecode
mailing list