Hi, I need a C# http server class to be extended to properly serve all file types correctly, including wav and mp3. For example, a web browser receiving audio files from the enhanced http server class should recognize the content as audio files. The enhanced server class should serve all Http Content-Types correctly.
Here is the url of the original http server project in codeproject:
[login to view URL]
In the code project example, there is an example serving pictures. However, this doesn't work the same by just changing the header to "audio/mpeg" or "audio/wav". I want this feature working for audio files.
Requirements:
- Use the enhanced version of the http server class for your starting code:
[login to view URL]
- Should be able to serve all Http Content-Types files correctly
- Audio file serving should support chunked mode and non-chunked mode
- Browser should recognize the server files as being audio, not application, etc.
- Should be able to correct serve files of any size.
- You're enhanced method should be as simple as passing the Filename to be served (and possibly a parameter for the tcp stream itself)
- File stream should be properly released and the file should not be locked on concurrent accesses
I believe this example which uses HttpListener serves files correctly (I have not tested):
[login to view URL]
However, I do not want to use HttpListener for many reasons (e.g. it requires admin rights, ssl is configured at the OS level, etc.) I want the afformentioned http server class to be used for the base code.
Thanks for your help in advance!
We are working is .net, php and android from the last 5 years.
We are new in freelancer but not in technology so give us one chance to prove our self.
Thanks You.