[mono-android] HTTPs problems

Mike Child mike at mikechild.net
Wed Nov 16 08:07:16 EST 2011


What version of MonoDroid are you using? That same snippet of code works
just fine on my phone. I'm using the beta version 1.9.2

Mike Child


On Tue, Nov 15, 2011 at 11:12 PM, Stuart Lodge <me at slodge.com> wrote:

> Hi
>
> I'm finding that I get an exception when I try to download content from
> any HTTPs address.
>
> Basic code I'm trying is:
>
>         var wc = new WebClient ();
>         var test1 = wc.DownloadString("http://www.google.com");
>         var test2 = wc.DownloadString("https://www.google.com")
>
> http succeeds, https fails with: {System.Net.WebException: Error getting
> response stream (Write: EndWrite failure): SendFailure --->
> System.IO.IOException: EndWrite failure --->
> System.Net.Sockets.SocketException: The socket has been shut down at
> System.Net.Sockets.Socket.EndSend (IAsyncResult result) [0x0002d] in
> /home/jon/Development/xamarin/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1989
>
> Details are also on
> http://stackoverflow.com/questions/8124854/i-cant-download-from-https-on-monodroid-am-i-missing-something-obvious
>
> Is there anything I can do to get this working (e.g. some compilation or
> manifest setting)?
>
> Thanks
>
> Stuart
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111116/f9a0b4b9/attachment.html 


More information about the Monodroid mailing list