[Mono-devel-list] RE: HttpWebRequest over SSL

Andrew Gleave Andrew.Gleave at ifgmgt.com
Mon Feb 28 11:56:34 EST 2005


It's ok, I've figured out how to do it and it is now working fine.
However, the timeout property for the HttpWebRequest object doesn't seem
affect the timeout period.  I'm setting it to timeout after 500 (ms) but
it's taking about 4-5mins until it actually does.  Any ideas?
 
Thanks a lot
 
Andrew

________________________________

From: Andrew Gleave 
Sent: 28 February 2005 14:51
To: 'mono-devel-list at lists.ximian.com'
Subject: HttpWebRequest over SSL


Hi all,
    We're experimenting with mono for a small app that uses a GET to
pull down page contents.  I have tested the code over http, and https
using .NET and it works fine.  However, when using mono the http test
works fine but the https fails.  I'm getting the following exception
thrown and trace:
 

Unhandled Exception: System.Net.WebException: Error getting response
stream (Write): SendFailure ---> System.IO.IOException: The
authentication or decryption has failed.
in <0x001ec>
Mono.Security.Protocol.Tls.SslClientStream:NegotiateHandshake ()
in <0x00038> (wrapper remoting-invoke-with-check)
Mono.Security.Protocol.Tls.SslClientStream:NegotiateHandshake ()
in <0x000a9> Mono.Security.Protocol.Tls.SslClientStream:BeginWrite
(byte[],int,int,System.AsyncCallback,object)
in <0x0001b> Mono.Security.Protocol.Tls.SslClientStream:Write
(byte[],int,int)
in <0x0002e> System.Net.WebConnection:Write (byte[],int,int)
--- End of inner exception stack trace ---
 
in <0x003e4> System.Net.HttpWebRequest:CheckFinalStatus
(System.Net.WebAsyncResult)
in <0x00045> (wrapper remoting-invoke-with-check)
System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult)
in <0x000f2> System.Net.HttpWebRequest:EndGetResponse
(System.IAsyncResult)
in <0x0005f> System.Net.HttpWebRequest:GetResponse ()
in <0x000fd> GetRequest.GetRequestTest:Main (string[])
 
 
Anyone got any pointers to get this functioning, or is it a work in
progress?
 
Thanks
 
 
Andrew

The information contained in this E-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform us immediately and delete it and all copies from your system.

Due to the fact that this E-mail could become corrupted or altered during transmission, any advice which it contains should not be relied upon unless subsequently confirmed by fax or letter signed by or on behalf of this company.

E-mails do not constitute compliance with any time limits or deadlines. 

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
#####################################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050228/5e5f1350/attachment.html 


More information about the Mono-devel-list mailing list