Hi Charles - thanks for your help. I immediately tried your modification (use 
‘put’ and avoid the variable ‘it’) but it made no difference. However, I think 
I have solved the problem: 

I was relying on the Standalone Application Settings option ’search for 
required inclusions’. This did however not include something called ‘internet’, 
which presumably is not tsNet but something else. Anyway when I chose that 
option, the behaviour in the IDE and the standalone suddenly appeared the same. 
I don’t know why it worked in some simpler standalones used for testing - 
perhaps the LC search for inclusions was confused by something in my real app 
and not in the simpler ones. Without this inclusion, the ‘put’ (or ‘get’) 
apparently works - nothing in ‘the result’ - but no data is transferred. With 
the inclusion, data is transferred as expected.

If I can, I will report this as a bug, but it’s going to be tricky to 
demonstrate it in its original context.

If anyone else is reading this, have you had any negative experience with the 
‘search for required inclusions’ feature of the LC Standalone settings?

Thanks again

Graham

> On 6 Mar 2018, at 08:50, Charles Warwick via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Graham,
> 
> 
>> On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode 
>> <use-livecode@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
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to