LC Server Unable To Retrieve File From DropBox?
Scott Rossi
scott at tactilemedia.com
Thu Dec 18 04:35:20 EST 2014
Thanks for the response Alex.
I don’t believe the secure URL is the issue, because the file can be retrieved from a browser using both the secure and standard forms, but both forms return 0 in the LC server test script.
In fact, I usually use the standard form in all my download URLs to avoid potential problems like you suggest. But since DropBox uses a secure URL by default, I used that in the test code.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On Dec 18, 2014, at 1:18 AM, Alex Tweedly <alex at tweedly.net> wrote:
> Not quite the test I was suggesting .... the dropbox url uses https: and for your own url you used http:
>
> It would be worth getting another url using https: to see if the server has a problem with the secure http - or whether it is specific to dropbox; even just https://google.com should do. It would be even better if you have a zip file somewhere behind a secure url - but I can't think of one you could try.
>
> -- Alex.
>
>
> On 18/12/2014 05:11, Scott Rossi wrote:
>> Thanks for the suggestion. Based on the test below, there does seem to be a problem with accessing DropBox.
>>
>> New script:
>>
>> put url "https://dl.dropbox.com/s/6fpl18ihvt7ffbl/test-image.zip" into file1
>> put the length of file1 into L1
>> put url "http://www.tactilemedia.com/download/test-image.zip" into file2
>> put the length of file2 into L2
>> put "dropbox " & L1 & "<br>" & "generic " & L2
>>
>> The result I get here still shows the DropBox file to have a length of 0, yet the test file downloads as expected when accessed via a browser.
>>
>> dropbox 0
>> generic 483575
>>
>> Any other suggestions?
>>
>> Thanks & Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>> On Dec 17, 2014, at 3:55 PM, Alex Tweedly <alex at tweedly.net> wrote:
>>
>>> Scott,
>>>
>>> you could try accessing some (any) other https: url to see if that works from your server.
>>>
>>> Might help you narrow down what to look at next :-)
>>> Sorry I can't come up with any better help.
>>> -- Alex.
>>>
>>> On 17/12/2014 22:17, Scott Rossi wrote:
>>>> Hi Simon:
>>>>
>>>> Well, I'm glad it works somewhere, but since it's not likely that I'll be using your LC server, this doesn't help me much.
>>>>
>>>> I wonder if maybe the edition makes a difference. Are you using the Commercial or Community edition?
>>>>
>>>> Thanks & Regards,
>>>>
>>>> Scott Rossi
>>>> Creative Director
>>>> Tactile Media UX/UI Design
>>>>
>>>>> On Dec 17, 2014, at 1:15 PM, Simon Smith <hello at simonsmith.co> wrote:
>>>>>
>>>>> Hi Scott
>>>>>
>>>>> Tried your script on my server - seems to work perfectly.
>>>>>
>>>>> Outputs: 483575
>>>>>
>>>>> Kind Regards
>>>>> Simon
>>>>>
>>>>> On Wed, Dec 17, 2014 at 10:14 PM, Scott Rossi <scott at tactilemedia.com>
>>>>> wrote:
>>>>>> Hi List:
>>>>>>
>>>>>> I¹m wondering if anyone has been using LC Server to serve files from
>>>>>> DropBox. Since updating LC Server to 6.7 on my host (DreamHost), it now
>>>>>> seems to be unable to retrieve files from DropBox.
>>>>>>
>>>>>> With the following script:
>>>>>>
>>>>>> put url "https://dl.dropbox.com/s/6fpl18ihvt7ffbl/test-image.zip" into
>>>>>> theFile
>>>>>> put the length of theFile
>>>>>>
>>>>>>
>>>>>> On a desktop system, this works as expected in the message box.
>>>>>>
>>>>>> On LC Server I get a value of 0.
>>>>>>
>>>>>> What am I missing here? Is this perhaps some kind of cross-domain
>>>>>> limitation? Any way to make this work?
>>>>>>
>>>>>> Thanks & Regards,
>>>>>>
>>>>>> Scott Rossi
>>>>>> Creative Director
>>>>>> Tactile Media, UX/UI Design
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> use-livecode mailing list
>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list