I am trying to design a system for something like this with ASP.net/C#.
The users pay for downloading some content (files- mp3s/PDFs,doc etc).I should be able to tra
To do custom byte serving like this, you will need to implement your own http handler.
This handler should do the following:
So you should be handling the following http headers:
Expires
Accept-Ranges
If-Range
Last-Modified
If you are looking for a sample implementations of http handlers check out: http://code.google.com/p/talifun-web/wiki
It has a static file handler that implements all the above http headers, client side and server side caching and even compression.
There is also a log module and an authorization module that should go a long way into how to implement authentication and logging.