[Mono-dev] Problem authenticating at ssl atom feed
Sebastien Pouliot
sebastien.pouliot at gmail.com
Tue Aug 17 13:14:06 EDT 2010
Google "mono ssl gmail", first link will provide answer.
Sebastien
Le 2010-08-17 à 11:59, alexware69 <alejandro.penate at gmail.com> a écrit :
>
> Hi, I am trying to connect to google's gmail atom feed in order to get
> unread(new) emails. I have no problems connecting in Windows, but when I try
> to do it in linux with mono I get the following error:
> Error getting response stream (Write: The authentication or decryption has
> failed.): SendFailure
>> From what I have read in other forums the problem might be that mono is not
> recognizing the server's ssl certificate. Here is my code:
>
> protected virtual void OnButton3Clicked (object sender, System.EventArgs e)
> {
>
> System.Net.WebClient objClient = new System.Net.WebClient();
>
> try
> {
> objClient.Credentials = new
> System.Net.NetworkCredential("myuser","mypassword");
>
> response =
> Encoding.UTF8.GetString(objClient.DownloadData("https://mail.google.com/mail/feed/atom"));
> }
> catch (Exception ex)
> {
>
> }
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Problem-authenticating-at-ssl-atom-feed-tp2328577p2328577.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list