SHOW:
|
|
- or go back to the newest paste.
| 1 | - | |
| 1 | + | |
| 2 | local url = tArgs[1] | |
| 3 | http.get(url) | |
| 4 | while true do | |
| 5 | - | while true do end |
| 5 | + | |
| 6 | if ev == "http_success" then | |
| 7 | file = os.open("test","r")
| |
| 8 | local byte = p2.read() | |
| 9 | while byte ~= nil do | |
| 10 | file.write(byte) | |
| 11 | byte = p2.read() | |
| 12 | ||
| 13 | end | |
| 14 | file.close() | |
| 15 | p2.close() | |
| 16 | end | |
| 17 | end | |
| 18 | print("done") |