filetype alternative for http check

Monkey Forums/Monkey Beginners/filetype alternative for http check

hub(Posted 2015) [#1]
Hi

Android target.

is there a way to determine if the file "http://10.0.05/folder/myfile.txt" exists ?

FileType not work with http.

(i know that you can use loadimage for an image ("http://") and next test if null was returned. But i don't want load it).

Perhaps the external android java 'file.exists' works with http:// ?


hub(Posted 2015) [#2]


Could someone test this on android target an external fonction ?


hub(Posted 2015) [#3]
On android device, Is someone have a way to verify if a http file exists ? Perhaps Filetype works fine for you ? Thanks to share your experimentation !


hub(Posted 2015) [#4]
Please could you confirm that filetype works for http on android target ?

This is the last problem with my program : check if a file exists on my NAS. If someone have another idea ... (the files to check are text files, not images).
I really need some help with this.
Many thanks.


hub(Posted 2015) [#5]
Finally i use a php page where i check directly on the nas server if the file exist or not, and next read the information with monkey loadstring.