How to add a custom user agent in the header using a webview and Xamarin Forms

I am writing an app using Xamarin Forms and wanted to control the user agent for my webview. It’s a little hacky way to have the website render differently when it see that it’s my app coming in without having to use session cookies or other crap like that. It was pretty easy once I […]

Xamarin PCL – How to URL Encode since there is no HttpUtility

Looking for the HTTPUtility class? Ha, you don’t get it. PCL doesn’t have it. Fret not, though, you can still URL Encode. It’s easy, just in a different spot. How to URLEncode in Xamarin Forms PCL var encodedData = System.Net.WebUtility.UrlEncode(stuffToEncode); Now you know, and now hopefully I will remember! Happy coding!