ccc Posted December 13, 2002 Posted December 13, 2002 Im having a weird https problem with vb.net. On my computer, this code runs perfectly fine (both segments), but on my partner's, who also has vb.net installed, both methods error with a nice: An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed: The remote name could not be resolved. But if the codes (either) are standard http, it works fine for the both of us. I've haven't the slightest clue of whats going on. Any help would be greatly appreciated this has stopped development dead in its tracks. Example code is below. Dim url As String url = "https://www.megaproxy.com" 'https always errors, http doesn't 'Method 1 Dim wr As System.Net.WebRequest wr = System.Net.WebRequest.Create(url) Dim st As IO.StreamReader = New IO.StreamReader(wr.GetResponse.GetResponseStream) MsgBox(st.ReadToEnd) 'Method 2 Dim wb As New Net.WebClient(), b() As Byte b = wb.DownloadData(url) MsgBox(System.Text.Encoding.Default.GetString(b)) Thanks Quote
*Gurus* Derek Stone Posted December 13, 2002 *Gurus* Posted December 13, 2002 The only type of error that myself and others have run across concerning HTTPS is a result of an invalid certificate on the secure server. The certificate may have expired or is not signed by a trusted source. Make sure that isn't the case. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.