Get Contents Of Web Page.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Googie85
Posts: 199
Joined: Tue Aug 05, 2014 10:07 am

Get Contents Of Web Page.

Post by Googie85 » Tue Jul 06, 2021 11:39 am

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.

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Get Contents Of Web Page.

Post by Klaus » Tue Jul 06, 2021 11:57 am

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!

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”