This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
billbertking1's profile picture

Missing pastebin program?

Started by billbertking1, 21 April 2013 - 01:01 PM
billbertking1 #1
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:
Sammich Lord #2
Posted 21 April 2013 - 03:02 PM
You need to enable the HTTP API.
QuantumGrav #3
Posted 21 April 2013 - 07:58 PM
To enable the HTTP API, follow the instructions on the wiki:
http://www.computercraft.info/wiki/index.php?title=HTTP_(API)
It's different if you're on a Mac, but if you're a PC guy, this should work.
TheOddByte #4
Posted 22 April 2013 - 06:58 AM
I had the similiar problem even though I had enabled the HTTP api one time so I created a program like 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..
Hope it worked for you! :)/>
billbertking1 #5
Posted 22 April 2013 - 07:23 AM
You need to enable the HTTP API.
Thanks :)/>
To 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.
Do know how xD :3

Mainly cause I'm always screwin around with config files xD
I had the similiar problem even though I had enabled the HTTP api one time so I created a program like 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..
Hope it worked for you! :)/>
Didn't have to use this…yet..lol
NanoBob #6
Posted 30 April 2013 - 04:58 PM
I had the same problem on a server, but is it off by default? itdoesn't seem to my because on my own private server it was already on…