Advertisement
goldfiction

mcterm wget

Aug 26th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function curl(url)
  2. local req = http.get(url)
  3. return req.readAll()
  4. end
  5.  
  6. local args = { ... }
  7. local url = args[1]
  8. local resp=curl(url)
  9. ak = io.open("/wget.out","w")
  10. ak:write(resp)
  11. ak:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement