ScriptCraft

ScriptCraft

14.6k Downloads

Support for HTTPS request module?

technobly opened this issue ยท 4 comments

commented

Just started using ScriptCraft and loving it!

I would love to make HTTPS requests to various secure APIs from within Minecraft. Have you looked at adding support for this in the past, and if so what were the limitations?

Currently I'm creating a secondary API that I use as a proxy to convert unsecure HTTP requests into the appropriate HTTPS requests. Since I'm already running Minecraft on a server, I would love to keep everything minimized to one server.

Another idea if somehow it's not possible to run HTTPS from within Minecraft, is potentially interfacing to Node.js from ScriptCraft?

commented

this issue can be closed because the HTTP request module handle HTTPS requests.

commented

Hi, I don't understand if here you were asking to be able to make outgoing HTTP(s) requests from within your mod, or if you were wanting to have a light-weight HTTP(s?) server bundled within ScriptCraft to serve up some static web content without requiring some other external (whatever) server? If it's the later, then I've done that in vorburger@66aa7c6 if that's of any interest to you.

commented

That sounds cool too @vorburger but I was actually wanting to make outgoing HTTPS GET/POST requests. That way I would not have to use a third party like Bluemix to forward HTTP requests as HTTPS, and could then make direct requests to secure APIs like those of Pushover.net and Spark.io. This would greatly simplify routes.

commented

I'm not sure what the JVM requirements for this project are, but there appears to be a push to put NodeJS on the JVM:
https://avatar-js.java.net/