How do you set up the correct HTTP Response object for a Range request coming from BITS (Background Intelligent Transfer Service)?
问题 I have a requirement to implement a web-service that can issue files to the bits (Background Intelligent Transfer Service). The language is ASP.NET (C#). The problem I am having is with the "range" stuff. My code currently receives the http request (with a valid range is present in the http headers of 0 - 4907), and subsequently dishes out a portion of a byte array in the response object. Here's my server code: _context.Response.Clear(); _context.Response.AddHeader("Content-Range", "bytes " +