Just transported this code from a windows form app testbed - where it is
working fine  in same VS2010 debugger

Can anyone tell me - should I be handling things differently in mandroid? 

It simply hangs on the line Wc.Uploaddata() and I cant get a clue  what's
causing it 

Obviously I've checked connection etc 

 

                                string mystr2 = "<nwx
version=\"0.3.5\"><Request id=\"1\"><AvailableEpochs/></Request></nwx>";

WebClient wc = new WebClient();

            wc.Headers.Add("Content-Type", "application/xml");

            wc.Headers.Add("Pragma", "no-cache");

            wc.Headers.Add("Cache-Control", "no-cache");

            wc.Headers.Add("Host", "www.navlost.eu");

 

            string ss3 = "http://navlost.eu/nwxs/";;

            byte[] byteArray = Encoding.ASCII.GetBytes(mystr2);    //(mystr2
is a string representation of xml file 

            byte[] responseArray = wc.UploadData(ss3, "POST", byteArray);

 

 

I'm stumped 

 

Any help gratefully solicited 

 

John Murray

 

 

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to