-3

How can I get link text using Lua?

My link is:

'''https://shahedtabriz.000webhostapp.com/Filex.txt'''

I need to get "Please Print This Text" using Lua.

  • 1
    Does this answer your question? [https request in lua](https://stackoverflow.com/questions/8286677/https-request-in-lua) – Mike V. Feb 08 '20 at 15:20
  • What host application your Lua script is running in? – Egor Skriptunoff Feb 08 '20 at 15:22
  • 1
    This question could be improved by using an example.com as the usable link, as the link shown will likely expire relatively soon and remove question context for future users. – rob Feb 08 '20 at 16:49

1 Answers1

0

I found the answer

result = HTTP.SubmitSecure("https://shahedtabriz.000webhostapp.com/Filex.txt",
   {request="check_user"}, SUBMITWEB_GET, 20, 443, nil, nil);
result = Dialog.Message("Notice", result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Egor Skriptunoff
  • 23,359
  • 2
  • 34
  • 64