I am writing a service to return a xls file by using the json passed to my service. I am using JAX-RS and WINk. Since the json passed to my service is too complex to be a @QueryParam in the url, so I want to use @POST method instead of @GET.
The question is: If I use @GET, I know I can paste the url in the browser to download the file returned by service, but if I use @POST, how can I download the file returned by the service?
The goal is when user post the request to this service, a window will pop up asking either"OPEN", "Download" or "Cancel".