How to enable the HTTP API
oeed 16 Mar 2014
This tutorial does not apply to ComputerCraft 1.63. Read this post as to how to fix it on there.
I soon intend to release OneOS on the FTB, Tekkit, etc forums and as the only way to install it is via HTTP I tried to find a tutorial that explains how to enable it. However, the only things I found were single posts that very briefly said to open the cfg file, so I've decided to make a tutorial on it for both Windows and Mac as well as client and servers.
To find the apporopirate tutorial, open the Windows or Mac spoiler then open either the client or server spoiler within.
If you want to enable HTTP on a server that you don't run you'll have to talk to an admin, giving them the link to this page.
If you're on Linux, I'm sure you can figure out how to get it working as you're able to use Linux, use the guides above as a rough guide.
Edited by oeed, 04 July 2014 - 05:22 AM.
I soon intend to release OneOS on the FTB, Tekkit, etc forums and as the only way to install it is via HTTP I tried to find a tutorial that explains how to enable it. However, the only things I found were single posts that very briefly said to open the cfg file, so I've decided to make a tutorial on it for both Windows and Mac as well as client and servers.
To find the apporopirate tutorial, open the Windows or Mac spoiler then open either the client or server spoiler within.
If you want to enable HTTP on a server that you don't run you'll have to talk to an admin, giving them the link to this page.
Mac
Windows
If you're on Linux, I'm sure you can figure out how to get it working as you're able to use Linux, use the guides above as a rough guide.
Edited by oeed, 04 July 2014 - 05:22 AM.
CometWolf 16 Mar 2014
Quote
I soon intend to release OneOS to on the FTP
http is enabled by default i believe, meaning if it's disabled, whoever did it should know how to turn it back on
oeed 16 Mar 2014
CometWolf, on 16 March 2014 - 10:46 AM, said:
Quote
I soon intend to release OneOS to on the FTP
http is enabled by default i believe, meaning if it's disabled, whoever did it should know how to turn it back on
Damn it! Typo fixed.
In vanilla CC isn't not on by default, as of 1.58 at least. Some mod packs will have it on though.
adencraft2000 17 Mar 2014
Spoiler
Question, On the mac examples I saw one of the ".DS_Store" files, These (as you may know) are hidden files and not normally visible without some trickery. What trickery did you use to make it show hidden thingies?
Edited by adencraft2000, 17 March 2014 - 09:13 PM.
oeed 17 Mar 2014
adencraft2000, on 17 March 2014 - 09:12 PM, said:
Spoiler
Question, On the mac examples I saw one of the ".DS_Store" files, These (as you may know) are hidden files and not normally visible without some trickery. What trickery did you use to make it show hidden thingies?
Simply Googled it.
http://ianlunn.co.uk...os-x-mavericks/
awsmazinggenius 18 Mar 2014
Nice tutorial, but if you plan on releasing it to the FTB or Tekkit launchers you should point them to the appropriate directories (make more sections). Also, I know that at least in some FTB packs HTTP comes enabled already. Tell them to type "http" in their Lua prompt to check if the table exists. Also, I find it weird how in the Windows tutorial the windows have different colors for the window border throughout the tutorial
oeed 18 Mar 2014
awsmazinggenius, on 18 March 2014 - 05:59 AM, said:
Nice tutorial, but if you plan on releasing it to the FTB or Tekkit launchers you should point them to the appropriate directories (make more sections). Also, I know that at least in some FTB packs HTTP comes enabled already. Tell them to type "http" in their Lua prompt to check if the table exists. Also, I find it weird how in the Windows tutorial the windows have different colors for the window border throughout the tutorial
HTTP checking is a good idea.
The Windows border changes because my desktop changes and the border colour is based off the desktop.
TheOddByte 18 Mar 2014
It would be easier for them to go into the lua prompt and type this to check if HTTP is enabled
if http then print("HTTP is enabled") else print("HTTP is disabled!") endAnd it seems that this tutorial is aimed at vanilla minecraft right? Since it seems in FTB and Technic HTTP is enabled by default and in vanilla MC it's not.
CometWolf 18 Mar 2014
oeed 18 Mar 2014
Hellkid98, on 18 March 2014 - 10:37 AM, said:
It would be easier for them to go into the lua prompt and type this to check if HTTP is enabled
if http then print("HTTP is enabled") else print("HTTP is disabled!") endAnd it seems that this tutorial is aimed at vanilla minecraft right? Since it seems in FTB and Technic HTTP is enabled by default and in vanilla MC it's not.
I question that too. My one guess is that it's due to security.
TheOddByte 18 Mar 2014
awsmazinggenius 19 Mar 2014
oeed: I figured that, but what I'm saying is keep it the same throughout the tutorial (just set it to be one color temporarily.)
oeed 19 Mar 2014
awsmazinggenius 19 Mar 2014
typo:
I soon intend to release OneOS to on the FTB, Tekkit, etc forums
should be either "on" or "in to".
I soon intend to release OneOS to on the FTB, Tekkit, etc forums
should be either "on" or "in to".
MostwantedRBX 19 Mar 2014
Lol, why are you guys messing with his typing. He does better then half the people on the internet. Anyways, this is a good tutorial for those who don't know how to edit config files or people who didn't even know they existed. Good job.
awsmazinggenius 20 Mar 2014
MostwantedRBX, on 19 March 2014 - 07:48 PM, said:
Lol, why are you guys messing with his typing. /> He does better then half the people on the internet. Anyways, this is a good tutorial for those who don't know how to edit config files or people who didn't even know they existed. Good job.
Because if you are writing a tutorial, you might as well make it easy to read then "to go the confine and chang it to true lol".
BytePointer 19 Jun 2014
It's a nice tutorial! I'm sure you helped some of the newbies whose HTTPApi 'magically' switched off
Tobias SN 09 Mar 2016
awsmazinggenius, on 20 March 2014 - 04:05 AM, said:
MostwantedRBX, on 19 March 2014 - 07:48 PM, said:
Lol, why are you guys messing with his typing. /> He does better then half the people on the internet. Anyways, this is a good tutorial for those who don't know how to edit config files or people who didn't even know they existed. Good job.
Because if you are writing a tutorial, you might as well make it easy to read then "to go the confine and chang it to true lol".
You might also consider it while writing a supposed-to-be-constuctive reply ("you might as well make it easy to read than "To go the config and change it to true lol"")