I want to read this page using Lua https://smart-lab.ru/dividends/index/order_by_t2_date/desc/
I can do it with python. It reads all I want:
from urllib.request import urlopen
txt=urlopen("https://smart-lab.ru/dividends/index/order_by_t2_date/desc/", timeout=10).readlines()
print(txt)
But I cannot do it with lua:
require "socket"
http = require 'socket.http'
local address = "https://smart-lab.ru/dividends/index/order_by_t2_date/desc/"
local body = http.request(address)
How can I download this page in Lua? Not duplicate of this.
because my request doesn't reurn nor 301 nor 302