[Mono-aspnet-list] Problem authenticating at ssl atom feed

alexware69 alejandro.penate at gmail.com
Sun Aug 15 14:34:05 EDT 2010


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-tp2326128p2326128.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list