[Closed] Read txt file from a server
Hey guys!
I’d like my script to be able to read a .txt from one of my server by http.
Because of the flaw of the .mse security, I don’t want to use the ftp version, that goes something like this:
_local Uri = dotnetObject “System.Uri” (URL) _
local req = (dotnetclass “system.net.webrequest”).create (Uri)
_ _
req.credentials = dotnetObject “System.Net.NetworkCredential” Login Password
req.timeout = 1000
req.method = “LIST”
req.UsePassive = true
req.KeepAlive = false
_ _
local response = req.getresponse()
local responseStream = response.GetResponseStream()
local reader = dotnetobject “System.IO.StreamReader” responseStream
etc.etc.
because you have to put the username and the password of the ftp in the code. Everybody who can crack mse file has access to my ftp. Not a good idea.
So, how can I read the www.myawesomewebsite.com/file/helloworld.txt directly from this link?
Thank you guys!