HttpReturnHttpString
Returns a pointer to the string "http" if the connection is not associated with SSL and to the string "https" if the connection is an SSL connection.
#include <httpexp.h>
char *HttpReturnHttpString (
HINTERNET hndl);
If successful, returns a pointer to the “http” or “https” string in the request header. Otherwise, returns 0.