Posted 21 April 2013 - 03:01 PM
Hello there. I was trying a pastebin code to try out an OS and when I did the pastebin get command, it showed this:
function clear()
term.clear()
term.setCursorPos(1,1)
end
--Pastebin code
clear()
write("CODE: ")
code = read()
--Filename
clear()
write("Name: ")
name = read()
clear()
shell.run("http/pastebin", "get", code, name)
IDK, But when I did this it worked, And after that It worked using regulary too..Thanks :)/>You need to enable the HTTP API.
Do know how xD :3To enable the HTTP API, follow the instructions on the wiki:
http://www.computerc...itle=HTTP_(API)
It's different if you're on a Mac, but if you're a PC guy, this should work.
Didn't have to use this…yet..lolI had the similiar problem even though I had enabled the HTTP api one time so I created a program like this:IDK, But when I did this it worked, And after that It worked using regulary too..function clear() term.clear() term.setCursorPos(1,1) end --Pastebin code clear() write("CODE: ") code = read() --Filename clear() write("Name: ") name = read() clear() shell.run("http/pastebin", "get", code, name)
Hope it worked for you! :)/>