Page 1 of 1

Get Contents Of Web Page.

Posted: Tue Jul 06, 2021 11:39 am
by Googie85
Hi Guys!!

I am trying to use the following code to get the contents of a .txt file on a webserver:

Code: Select all

put the URL "http://192.168.1.157/test.txt" into temp
answer temp
and:

Code: Select all

get URL "http://192.168.1.157/test.txt"
put it into temp
Both of these do not work on LC Community 9.6.2 (rc 2).

Is there another way to achieve this??

Many Thanks,

Googie.

Edit: It works in the IDE but not on my Android Devices.

Re: Get Contents Of Web Page.

Posted: Tue Jul 06, 2021 11:57 am
by Klaus
As far as I know http URLs are not allowed on mobile anymore, you should see an error dialog.
We can only access httpS urls!