Forum Xamarin Xamarin.Android

Xamarin WebClient DownloadData Stops Working with Uri(url, true)

I am working on a Xamarin Android App, in which I need to call a web service with URL as given below:|param2|param2|param4
The problem is I need to pass Un-encoded URL with Pipes (|) otherwise service will stop working. When I use:

Uri ourUri = new Uri(url, true);

The WebClient freezes without any response (seems a bug in Mono), where as similar code works in C# Form Application and If I remove TRUE from options then it encodes URL with %7C which server doesn't understand.

Please help to solve this problem or any alternate?

*I also used HttpWebRequest but that has similar problem.

Sign In or Register to comment.