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

How to download a program to put on server, or enable http api?

Started by dextermb, 06 September 2012 - 04:53 PM
dextermb #1
Posted 06 September 2012 - 06:53 PM
How to download a program to put on server, or enable http api?

thanks,
Dextermb
sjele #2
Posted 06 September 2012 - 06:55 PM
pastebin get id nameOnComputer

pastebin.com/(What goes here) that is the id

You need http api enabled for this
kazagistar #3
Posted 06 September 2012 - 07:36 PM
If you run the server, enabling http should be a pretty obvious setting right in the computercraft settings file in the mod folder.

If you dont, you have to use one of the numerous workaround solutions that people have posted to the forums.
dextermb #4
Posted 07 September 2012 - 02:13 PM
If you run the server, enabling http should be a pretty obvious setting right in the computercraft settings file in the mod folder.

If you dont, you have to use one of the numerous workaround solutions that people have posted to the forums.
pastebin get id nameOnComputer

pastebin.com/(What goes here) that is the id

You need http api enabled for this

Ok thank you.

But what do does Sjele mean by 'pastebin… nameOnComputer' ?
sjele #5
Posted 07 September 2012 - 02:14 PM
Pastebin : The name of the api you are calling.
nameOnComputer: What file/name it will be stored at in computer
TristanTroll #6
Posted 07 September 2012 - 06:10 PM
To enable HTTP go to your mods folder and find ComputerCraft, find ComputerCraft.cfg file and change the HTTP = 0 to HTTP = 1. Same thing goes for servers.
When you go into pastebin I had a crap ton of trouble on my previous server and couldn't figure out why pastebin get <pastebincode> <Name of file> to work, so the solution to that is
rom/programs/http/pastebin get <pastebincode> <Name of file> – The code is the numbers and letters after the pastebin.com/ – The name of the file is what you want to save it as
dextermb #7
Posted 08 September 2012 - 12:41 PM
Pastebin : The name of the api you are calling.
nameOnComputer: What file/name it will be stored at in computer
To enable HTTP go to your mods folder and find ComputerCraft, find ComputerCraft.cfg file and change the HTTP = 0 to HTTP = 1. Same thing goes for servers.
When you go into pastebin I had a crap ton of trouble on my previous server and couldn't figure out why pastebin get <pastebincode> <Name of file> to work, so the solution to that is
rom/programs/http/pastebin get <pastebincode> <Name of file> – The code is the numbers and letters after the pastebin.com/ – The name of the file is what you want to save it as

ok thanks.