I am using LWIP in embedded device with httpd runs, trying to find a solution of dumping large binary files by web. my http response(data dump) will be like this
200 OK
Content-Type: application/octet-stream; name=xxx_data.bin
Content-Disposition: attachment; filename=xxx_data.bin
Content-Length: xxxxx
"my raw binary data, not string..."
I read the CGI/SSI code, the elegant solution is not clear to me yet. Can i use the CGI/SSI to implement it? Can i write a non-shtml file like the following and then use makefsdata.exe to produce the fsdata, does ssi tag work in this file or it will only work in html body?
200 OK
Content-Type: application/octet-stream; name=xxx_data.bin
Content-Disposition: attachment; filename=xxx_data.bin
Content-Length: xxxxx
<!--#tag_data-->
In another way, my requirement is do dump a virtual binary file(*.bin) as an attachment, should i use the makefsdata.exe to create this virtual file which is actually run-time generated
Any other recommendation about an elegant solution will be appreciated.