HOWTO: How to Make SSL Requests Using WinInetLast reviewed: January 19, 1998Article ID: Q168151 |
The information in this article applies to:
SUMMARYThis article explains how to make SSL requests using the WinInet APIs.
MORE INFORMATIONIt is possible to establish a Secure Socket Layer (SSL) or Private Communications Technology (PCT) HTTP session with the WinInet APIs. Secure HTTP, denoted as HTTPS://, takes place over TCP port 443. Code similar to the following can be used to establish an HTTPS session:
... hOpen = InternetOpen (...); Connect = InternetConnect ( hOpen, // InternetOpen handle "MyHttpServer", // Server name INTERNET_DEFAULT_HTTPS_PORT,// Default HTTPS port - 443 "", // User name "", // User password INTERNET_SERVICE_HTTP, // Service 0, // Flags 0 // Context ); hReq = HttpOpenRequest ( hConnect, // InternetConnect handle "GET", // Method "", // Object name HTTP_VERSION, // Version "", // Referrer NULL, // Extra headers INTERNET_FLAG_SECURE, // Flags 0 // Context ); ...Please note two differences when using HTTPS instead of HTTP:
SSL and PCT functionality are provided by Schannel.dll, which is properly installed when you run the redistribution program Wintdist.exe or Wint351.exe. See Redist.txt or Axredist.txt for information about redistributing Schannel.dll.
REFERENCESInternet Client SDK Help (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Leon Braginski, Microsoft Corporation Keywords : AXSDKWinInet kbcode Technology : kbInetDev Version : Win:1.0,4.0,4.01 Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |