Charles,
To have the browser treat your data stream as a download, you need to
set the HTTP header "Content-type: application/download". This needs to
be set in the "header", not the <HEAD> section.
Universe has the setRequestHeader() function, but the documentation is
not clear on how to set the body of the data.
Normally, an HTTP response is pretty straightforward:
001: Content-type: application/download
002:
003: some,comma,delimited,data
004: some,comma,delimited,data
Omit the line numbers. The HTTP header is separated from the content
using a blank line (linefeed). I don't think any other headers are
required (but I could be wrong.) "Content-length" is nice to have.
Note that you can experiment with other mime-types to get the download
to open in an application.
rex
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/