Jump to content




Missing pastebin program?

computer networking api

  • You cannot reply to this topic
5 replies to this topic

#1 billbertking1

  • Members
  • 22 posts

Posted 21 April 2013 - 02: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:
Posted Image

#2 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 21 April 2013 - 02:02 PM

You need to enable the HTTP API.

#3 QuantumGrav

  • Members
  • 36 posts
  • LocationUnited States

Posted 21 April 2013 - 06:58 PM

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.

#4 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 22 April 2013 - 05: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! :)

#5 billbertking1

  • Members
  • 22 posts

Posted 22 April 2013 - 06:23 AM

View PostSammich Lord, on 21 April 2013 - 02:02 PM, said:

You need to enable the HTTP API.
Thanks :)

View PostQuantumGrav, on 21 April 2013 - 06:58 PM, said:

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

View PostHellkid98, on 22 April 2013 - 05:58 AM, said:

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

#6 NanoBob

  • Members
  • 102 posts

Posted 30 April 2013 - 03: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...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users