Click to See Complete Forum and Search --> : HTTPS connection


Roman Bobak
February 17th, 2000, 10:47 AM
I am in urgently need to make a secure connection to https site. (direct, no proxy)
I've used two different ways :
1. Using Inet VB component :
Inet1.UserName = "valid login"
Inet1.Password = "valid password"
Inet1.Protocol = icHTTPS
Text1.Text = Inet1.OpenURL("https://xxx.xxx.com")

2. Using wininet.dll
hOpen = InternetOpen("VB OpenUrl", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) ' returns valid handle

iConect = InternetConnect(hOpen, "https://xxx.xxx.com", INTERNET_DEFAULT_HTTPS_PORT, "valid login", "valid passwd", INTERNET_SERVICE_HTTP, 0, 0) ' returns 0

In both case it returns Error 401.2
I don't understand it, cause if i use browser, I can easy get in. I've a valid account for this site.
Please help ! I am sitting third day over it yet.
Thanx in forward.
Roman
ICQ#53551457