I have a requirement to handle an application that is POSTing XML to a server and port. Unfortunately it is not possible for me to specify a path from this application and no way for me to change it.
So in Wireshark I can see it POSTing to
http://10.0.126.11:8082 <--- note the lack of trailing slash
If I set a test POST as follows in wfetch, I can route it just fine in grails. The following is what shows in Wireshare:
http://10.0.126.11:8082/ <--- trailing slash
I have the grails setup to route setup for the root path "/" in the UrlMappings and have setup the grails.app.context = "/" in the Config.groovy. Note that things just go badly if these are set to empty string.
Is there a way to go a step above the root path and respond to anything on the server:port? Can Grails respond to a request without a path?
This is the situation I'm trying to handle when recreating with wfetch (note that there is no path):