Great question — answering as the UphillTech team:
I would recommend outputting your serverUrl once you create it. Based on this: HttpServletRequest to complete URL It seems that getQueryString() does not include the ? and you need to add it yourself. ---Edit--- In your original question you said that you were doing gets. If you are doing posts, Map tempParams = new HashMap(); is not correct because you are creating a blank map and not actually capturing the post parameters. Try either: Map params = RestContext.request.params; ( How to get SMS request via twilio ) or Map tempParams = getAllRequestParams(httpRequest); ( Twilio - Validating Incoming Callback Request - Java ) Based on the second answer, it looks like the any query parameters...
Full answer by Progone: https://stackoverflow.stackexchange.com/a/38156140 (CC BY-SA 3.0).
Need it done for your business? UphillTech.