HTTPConsole
HTTPConsole - Issue Console Commands Over HTTP
Now under new management, And has been revived! Originally by BlueJeansAndRain: Original thread: HTTPConsole - Outdated Thread
Download
Do not use v2.2.0 use 2.2.1 instead
HTTPConsole Latest Stable Build
Source Code and Issues/Feature Requests
Features
- Issue any command over HTTP that you can issue on the console.
- Change the listener IP address, port, and log-level through the config file.
- Get back the output of the issued command. NOTE: This only works for some commands, specifically commands that are not "threaded".
- Accepts GET and POST (url or json encoded) requests.
- Client IP address whitelist/blacklist.
- Host name filtering.
Usage
Client side scripts such as javascript are not recommended since any action could easily be performed. Please stick to using server side scripts, (i.e. make javascript query a php script)
Make requests to http://127.0.0.1:8765/console?command=<command> (assuming you're using the default port and the server is running on localhost). If you're running your server locally, just open up your browser and type http://127.0.0.1:8765/console?command=save-all and SAVE THE WORLD!
TroubleShooting
- Change the "port: 8765" configuration option to a different number. Valid values are 1024 - 65565
- Make sure your firewall is allowing access to the port.
Please post all issues or feature requests on GitHub!
-
View User Profile
-
Send Message
Posted Dec 21, 2012Thank you all for using HTTP Console, I will do my best to get a release for 1.4.6 asap. Although I will no longer be updating HTTP Console very often as mods are becoming easier to install and develop and bukkit will soon (in my opinion) be replaced by the official server api. All in all, I shall be updating asap. Merry Christmas! ;)
-
View User Profile
-
Send Message
Posted Dec 21, 2012Any planned date for update?.
-
View User Profile
-
Send Message
Posted Dec 20, 2012Will you be updating this for 1.4.6? It doesn't seem to work anymore. :(
I rely on it to run quite a few different scripts on my server.
-
View User Profile
-
Send Message
Posted Sep 27, 2012@Sorroko Error:
http://pastebin.com/raw.php?i=EcsPXeWH
Thanks for the awesome plugin
-
View User Profile
-
Send Message
Posted Sep 22, 2012@externo6
Sorroko, please stop it from doing this when performing a port check on the console.
Thank you! eg.
Console output:
-
View User Profile
-
Send Message
Posted Sep 9, 2012Hello, we are getting this every time a command is sent via http console
14:40:01 [SEVERE] HTTPConsole: Error writing HTTP request output stream 14:40:01 [SEVERE] Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.writeBytes(Unknown Source) at org.theanticookie.bukkit.httpconsole.HTTPResponseHeaderHelper.outputHeaders(HTTPResponseHeaderHelper.java:60) at org.theanticookie.bukkit.httpconsole.HTTPServer.requestHandler(HTTPServer.java:92) at org.theanticookie.bukkit.httpconsole.HTTPServer.run(HTTPServer.java:335) 14:40:01 [SEVERE] HTTPConsole: Error writing HTTP request output stream 14:40:01 [SEVERE] Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.writeBytes(Unknown Source) at org.theanticookie.bukkit.httpconsole.HTTPResponseHeaderHelper.outputHeaders(HTTPResponseHeaderHelper.java:60) at org.theanticookie.bukkit.httpconsole.HTTPServer.requestHandler(HTTPServer.java:92) at org.theanticookie.bukkit.httpconsole.HTTPServer.run(HTTPServer.java:335)
-
View User Profile
-
Send Message
Posted Aug 29, 2012@Ta6akus3
Just code that into the php script.. /
Or
-
View User Profile
-
Send Message
Posted Aug 7, 2012@ryan_the_leach
This should NEVER be live on your external IP. If you MUST then add IPs to the white list and/or allowed-hosts.
Although authentication would be nice, if you keep it locked down you will be safe.
-
View User Profile
-
Send Message
Posted Aug 1, 2012Hello,
it's possible to add a gestion to white/Black-list with mysql storage plz ! :-)
-
View User Profile
-
Send Message
Posted Jul 16, 2012@laseromich Well it still should work, but ill update something. Ill see if I add basic http authentication (should be fun...) ;)
-
View User Profile
-
Send Message
Posted Jul 15, 2012update plz... with out changes... but only update something :3
-
View User Profile
-
Send Message
Posted Jul 12, 2012@ryan_the_leach It does, sort of, you can whitelist ips. I recommend using this with a server, whitelist the server, then send requests through the server (i.e. you could add your own auth or only allow certain commands) EDIT: By server I mean web server, such as apache and php
-
View User Profile
-
Send Message
Posted Jul 12, 2012Please, Please, Please tell me this has some form of authentication happening.
otherwise malicious user:
1. /plugins, 2. see's httpconsole, 3. (googles) 4. ops himself 5. griefs.
-
View User Profile
-
Send Message
Posted Jul 5, 2012@bloudman There is no need for a config option, this is simple php, you could also dynamically poll with javascript, I would advise jQuery and ajax
-
View User Profile
-
Send Message
Posted Jul 5, 2012HI, Can we return to a webpage when the command is sent. Because i need that and i have looked for in config but i did not find.
If there is a PHP page who is generate by the pluggin I can change this one but I didn't find this to...
(sorry for my english :) )
-
View User Profile
-
Send Message
Posted Jul 5, 2012Fucking great plugin, thanks!!
-
View User Profile
-
Send Message
Posted Jun 27, 2012@Sorroko
Ok, I hadn't seen any real problems with the backups, and it still normally reports World Saved.
Thanks.
-
View User Profile
-
Send Message
Posted Jun 27, 2012@LukeHandle Sorry I haven't replied, it is a known issue although I don't think it would be easy to solve. It seems that despite the error it still saves so I would encourage you to ignore it for now.
-
View User Profile
-
Send Message
Posted Jun 18, 2012@Sorroko
Sorry to bother you, have you had the ConcurrentModificationException before when trying to save?
-
View User Profile
-
Send Message
Posted Jun 11, 2012ConcurrentModificationException when attempting "save-all" https://pastebin.com/raw.php?i=Kv8CFR2E
That's with a 3 second sleep between "save-off" and "save-all".
Is this as major an issue as it sounds? Or can I ignore it.... It doesn't always occur, but mostly it does.
Thanks for keeping this plugin going!