Microsoft KB Archive/198566

= INFO: How to Make SSL Requests Using WinInet on WinCE =

PSS ID Number: 198566

Article Last Modified on 7/22/2003

-

The information in this article applies to:


 * Microsoft Windows CE Operating System, Versions 2.0

-



This article was previously published under Q198566



SUMMARY
This article explains how to make SSL requests using the WinInet APIs on Windows CE.



MORE INFORMATION
It is possible to establish a Secure Socket Layer (SSL) or Private Communications Technology (PCT) HTTP session with the WinInet APIs. However, unlike the Win32 counterpart, HttpOpenRequest on WinCE 2.0 does not accept the INTERNET_FLAG_SECURE flag. If this flag is provided, HttpSendRequest fails with error 87 ("Invalid Parameter").

It is still possible to submit the SSL-encrypted request by using the InternetOpenUrl API. To do so, this API must be used in the following fashion:

InternetOpenUrl (hReq, L"https://myserver/mypage.htm", ...)

No specific flags are necessary for the SSL request.

Please note the following limitations:
 * InternetOpenUrl can only send GET requests.
 * InternetOpenUrl ignores the query string part of the URL. Therefore, it is not possible to submit GET requests with parameters.

