[mono-android] HTTPs problems

Mike Child mike at mikechild.net
Wed Nov 16 16:45:03 EST 2011


The first time I tried this it was on an actual device, but I just tried
again on the emulator just to make sure it wasn't something goofy with that
and it still worked.

 var wc = new WebClient ();
 var test2 = wc.DownloadString("https://www.google.com")

So it could be a bug in the version 1.2.2 of MonoDroid(which is the current
release version). Being on the 1.9.2 beta version it does work. As far as
getting the beta version, I don't know that you can without having a
license. Hopefully someone with more knowledge on that could answer for you.


Mike Child


On Wed, Nov 16, 2011 at 4:04 PM, Stuart Lodge <me at slodge.com> wrote:

> Thanks for confirming that its working for you.
>
> Not entirely sure what version I'm on - I downloaded it as an eval last
> week.
>
> The version info I can see in MonoDevelop is: MonoDevelop.MonoDroid -
> 2.6.0.0 - and - runtime "Mono for Android: 1.2.24817.105690530 (Evaluation)"
>
> So maybe I'm just on something really old... will look at whether there's
> anything I can do about it:)
>
> Any hints about where to look appreciated (I've ticked the beta box in
> MonoDevelop but isn't reporting any updates)
>
> Thanks again
>
> Stuart
>
>
>
> On 16 November 2011 13:07, Mike Child <mike at mikechild.net> wrote:
> > 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
> >>
> >
> >
> > _______________________________________________
> > Monodroid mailing list
> > Monodroid at lists.ximian.com
> >
> > UNSUBSCRIBE INFORMATION:
> > http://lists.ximian.com/mailman/listinfo/monodroid
> >
> >
>
>
> _______________________________________________
> 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/4ad0bd5e/attachment.html 


More information about the Monodroid mailing list