Network Topics include: sockets, protocols and the web

Go Back  Xtreme .NET Talk > .NET > Network > Odd Https (SSL)


Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2002, 01:13 PM
ccc ccc is offline
Newcomer
 
Join Date: Dec 2002
Posts: 8
ccc is on a distinguished road
Default Odd Https (SSL)

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:

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. 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.

Code:
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
Reply With Quote
  #2  
Old 12-13-2002, 01:40 PM
Derek Stone's Avatar
Derek Stone Derek Stone is offline
Exalted One

Preferred language:
C#
 
Join Date: Nov 2002
Location: Rhode Island, USA
Posts: 1,877
Derek Stone is on a distinguished road
Default

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.
__________________
Posting Guidelines
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HttpWebRequest with https rfazendeiro Network 1 07-04-2006 12:28 PM
Redirecting from an SSL page to a non-SSL page. mike55 ASP.NET 0 04-03-2006 05:52 AM
Using https jccorner ASP.NET 1 09-18-2005 02:47 PM
Https Tamer_Ahmed Database / XML / Reporting 2 11-11-2004 07:05 PM
Https / Ssl angula ASP.NET 2 02-17-2004 10:55 PM

Advertisement:

Powered by liquidweb