Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local http = require("internet")
- local args = {...}
- local handle = http.request(args[1])
- local result = ""
- for chunk in handle do result = result..chunk end
- local file = io.open(args[2], "w")
- file:write(result)
- file:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement