Range for headers.

Oct 7, 2012 at 5:55 PM

It seems HttpWebRequest doesn't allow you to use the "Range" header directly, so I had to modify the project, 

In private HttpWebRequest ConfigureWebRequest(Request request)

I added 

if (request.UseRange)
                 httpWebRequest.AddRange(request.RangeFrom, request.RangeTo);


And three public members in the Request class,

public bool UseRange = false;  
public int RangeFrom = 0;               
public int RangeTo = 0;