Knowledge Base

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:


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.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

168151 How to Make SSL Requests Using WinInet


Additional query words: kbDSupport

Keywords: kbinfo KB198566
Technology: kbWinCE200 kbWinCESearch