http - "Save As" popup in response to a POST request? -


is possible browser popup save as... dialog when doing post (rather get) request?

using spring framework, i'm trying build service receive data (a two-dimensional json array), , produce excel file user prompted download.

by doing request, eg browsing directly url, can browser display popup setting headers similar this:

response.setheader("content-disposition", "attachment; filename=" + filename) response.setcontenttype("application/vnd.ms-excel") 

i need allow client post data used build excel file though, implies post request. same headers returned, no popup.

is there way achieve this, or popup appear requests? i'm thinking two-step process; 1) allow client post data, , return sort of reference key, 2) allow client request , include key, , return relevant headers cause browser popup dialog.

any other thoughts on how this?

thanks

it's possible. i'm not sure did wrong first time tried out.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -