0

I execute following request using RestSharp

var request = new RestRequest("downloadDocument", Method.GET);
var id = 288148748;
request.AddParameter("id", id);
request.AddHeader("Custom-Header", "blablabla");
request.AddHeader("Accept", "*/*");
request.AddHeader("Range", "bytes=59000-");
var response = client.Execute(request);

I inspect request using Fiddler and I see that all headers all visible except Range. Why?

enter image description here

1 Answer 1

0

I solved issue. RestSharp requires Range with from-to parameters e.g "Range: bytes-59000-63000. RestSharp does not add headers like "Range: bytes=59000-" (which is valid for curl).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.