Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- term.clear()
- term.setCursorPos(1,1)
- print("Enter site: ")
- input = read()
- servloc = string.find(input,"/")
- protocol = string.sub(input, servloc)
- page = string.sub(input,1,servloc - 1)
- print("Connecting to "..message..protocol)
- rednet.broadcast(page,protocol)
- waitForResponse = true
- while waitForResponse do
- print("Waiting for server...")
- id,response = rednet.receive("response")
- textutils.slowPrint(response)
- print("From Server "..id)
- waitForResponse = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement