HTTP Requests icon

HTTP Requests -----

A plugin which allows players to send HTTP POST and GET requests through an in-game command.



Out with the spaghetti, in with the orzo - Queues, better filtering, and more!
New features:
  • New queue system for when too many requests are being sent
Bug fixes / improvements:
  • Complete refactor of code
  • Better optimization
  • Whitelists and blacklists moved into separate files
  • Whitelist and blacklist now filter based on address authority, allowing for much more effective address filtering
The Update
Since I didn't really know Java all that well when I originally wrote this plugin, I was not able to easily implement a queue system. This is not only due to the extreme levels of spaghetti code, but also the simple fact that I just did not know Java well enough.

With this update, many tiny bugs have been fixed which I didn't know existed in the previous releases of the plugin, and many small performance issues have been fixed. Requests are now handled as individual objects, allowing for a much more flexible code base to work with.

Additionally, the whitelist and blacklist have been completely overhauled. Not only are they now in separate files, but they also filter based on the address authority. What this means, is that instead of directly checking whether a string matches another string, it's possible to completely block or allow all requests going to a certain web server at once, without having to filter each page individually.

The new, configurable queue system allows for requests to be stored temporarily until the given cooldown has expired. While the queue cannot actually be disabled under-the-hood, you can more or less achieve this by setting the queue size to 1, if it's something you don't want to have enabled on your server.

Command block mine carts have been added as a separate command sender, along with all other command senders under an "other" category, allowing for requests to be sent from any interface within the game.

The response processing function has been altered, adding in new parameters, and changing some others. Additionally, the value which must be returned has changed.

To return a command, you must now prefix the returned string with "command:".

For example,
Code (Text):
"command:say hello world!"
I will be updating the plugin's wiki page over the coming days to reflect these new changes, and to provide detailed instructions on how the new features work. If you feel you may be unable to update until this has been done, but still would like to update the plugin on your server, please feel free to reach out to me in the plugin thread, or via DMs for any help if needed.

If anyone finds any issues with this release, please do report them either on the plugin's GitHub page, or in the plugin's spigot thread.

Happy admining!
----------, May 28, 2023
Resource Information
Author:
----------
Total Downloads: 752
First Release: Apr 9, 2022
Last Update: May 28, 2023
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings