Re: [Dclib-devel] DClib - http server - downloading files
Brought to you by:
davisking
From: Davis K. <dav...@us...> - 2008-11-26 21:07:57
|
On Wed, Nov 26, 2008 at 1:49 PM, Martin Slováček <ma...@ce...> wrote: > Hi Davis, > > For my diploma thesis, I need to embed a HTTP server to a VST plug-ins > host, which will be cotrolled by a Java applet. So, I need to be able to > handle a request for a binary file (java *.class file). Is there a way > how to do it using the http server object in your library? > > I haven't done this myself but I think you should be able to send a file back through HTTP if you put the file data in the response string and set the appropriate HTTP headers. If I recall correctly all you need to do is set the Content-Type header to something like application/class or whatever the appropriate content type is for general binary data or java class files. -Davis |