Advertisement
sinkir

lua http test

Oct 3rd, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. sExample = http.get("http://sinkir.free.fr/turtle/?a=turtlegetlabel") --Get contents of page
  2. write(sExample.readAll()) --Read and print contents of page
  3. sExample.close() --Just in case
  4.  
  5. sExample = http.get("http://sinkir.free.fr/turtle/?a=turtlegetstop") --Get contents of page
  6. write(sExample.readAll()) --Read and print contents of page
  7. sExample.close() --Just in case
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement