Unable to display responses of type "application/octet
*response << "HTTP/1.1 200 OKrnContent-Length: " << success.length();
*response << "rnContent-Type: application/octet-stream";
*response << "rnContent-Disposition: attachment; filename="" << filename << '"';
*response << "rnrn" << success;
I set the response header like this to let the browser to download the result from the server rather than to show the result directly. But it can't show the download box as expected, and the browser shows that "Unable to display responses of type "application/octet-stream"".
Is there anyone who knows how to solve this problem? Thanks a lot!
链接地址: http://www.djcxy.com/p/46270.html上一篇: 如何将JS对象转换为JSON