Odd Https (SSL)

ccc

Member
Joined
Dec 13, 2002
Messages
8
Im having a weird https problem with vb.net.

On my computer, this code runs perfectly fine (both segments), but on my partners, who also has vb.net installed, both methods error with a nice:

Code:
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. Ive havent 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.

Code:
Dim url As String
url = "https://www.megaproxy.com" https always errors, http doesnt

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
 
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 isnt the case.
 
Back
Top