Using a Proxy Server

Many organizations install proxy servers to filter IP packets to control access to internal systems from other users on the Internet, and perhaps to control the type of protocols or servers that users in the organization can access. In this situation users actually communicate with the proxy server, and the proxy server connects to the requested server on the user's behalf. Thus, when writing code, you need to instruct the Internet functions to use the proxy server. This is done when calling InternetOpen. For example, the following code fragment specifies that a proxy server with the name "SPPROXY" should be used.

 hHttpOpen = InternetOpen(_T("Example Agent"), INTERNET_OPEN_TYPE_PROXY, _T("SPPROXY"), // proxy server NULL, ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.