var request = new RestRequest("api/exchanges/%2f/SampleName", Method.PUT);
RestSharp will change "%2f" to "/" before executing the request (I'm checking the actual request in Fiddler).
var request = new RestRequest("api/exchanges/{vpath}/SampleName", Method.PUT);
request.AddUrlSegment("vpath", "%2f");
RestSharp will change "%2f" to "%252f" before executing the request.
Is there a way for RestSharp to leave the character group "%2f" intact in the request URL?
I tried the workaround I saw in another discussion and which seemed related. I used blank string for Request URL and instead put the whole URL as string in BaseUrl property of the RestClient. However, that seems to behave the same. "%2f" gets automatically replaced by "/" before executing the request. Any chance I can avoid this?
Thanks!
Milan Gornik