Webclient only works in the simulator?
Posted: Sat Nov 19, 2016 10:58 am
I Have this code that runs just fine in the simulator I get the data that I want back , but when running in the browser nothing happens , I'm using version 10.3 Beta, I'm I missing something?
Code: Select all
var webClient = new System.Net.WebClient();
webClient.Headers[HttpRequestHeader.Accept] = "text/xml";
webClient.Encoding = Encoding.UTF8;
string response= webClient.UploadString("http://bytemotionappV2.cloudapp.net:807/Mobile/Hospitality/WP/producao/loginXamarinGet.php?username=1&password=2","");