Link to home
Start Free TrialLog in
Avatar of curtis591
curtis591

asked on

SSL Requests Using WinInet

I have been able to use the WinInet functions to connect to HTTP pages but I am having trouble getting connected to HTTPS pages.  
From reading the article in the microsoft site all I have to do is change the port to 443 in the internetconnect function and then use INTERNET_FLAG_SECURE flag HTTPOPENREQUEST function.  My question is when you declare the flag INTERNET_FLAG_SECURE what is the value of the flag and where do you get these values from.  Ex:  In program that goes to the HTTP sites it uses the INTERNET_FLAG_RELOAD flag and it is defined as
Const INTERNET_FLAG_RELOAD = &H80000000, where did the &H80000000 come from?
Avatar of AzraSound
AzraSound
Flag of United States of America image

i believe it is the same constant value as INTERNET_FLAG_RELOAD but is special case when used with SSL
actually its this

Private Const INTERNET_FLAG_SECURE = &H800000
Private Const INTERNET_FLAG_RELOAD = &H80000000
     
Avatar of curtis591
curtis591

ASKER

That works but how did you know that it is was &H800000?  Is there some help on this somewhere to find out what the rest of the flags are?
ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Answer accepted
This is where you can find the WinInet API declarations:

FILE: Vbinet.exe WinInet API Declarations for Visual Basic
http://support.microsoft.com/support/kb/articles/Q185/5/19.ASP?LN=EN-US&SD=msdn&FR=0 



Cheers!®©