http://www.google.com/search?q=content+disposition
On 8 April 2010 18:13, Sherry <mywacco...@gmail.com> wrote: > Hi, > I would like to have my application return a JSON object for > download. > > I'm trying to simulate the behavior that happens when I access the > page: "http://search.twitter.com/trends/current.json?exclude=hashtags" > in which the Chrome browser automatically downloads a file > current.json . I've tried to print the JSON string into the output or > through a JSP but it doesn't work (I need to return this JSON file > into an XMLHttpRequest object). > > I've copied the current.json file I downloaded from the twitter link > above into my WAR folder, but when I access it through Chrome it just > opens its contents in the browser, and I would like to be able to > download it, as in the twitter link. > Can anyone direct me how to force this download to happen? > Thank you > Sherry. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.