I would like to make an app in javafx, when pressing a button it sends a command of type: curl http://IP:PORTA/sendLocalEvent?eventName=_evento
to a server on the same network to start the _evento event.
Would it be using httpUrlConnection and POST? How would it be?