& Nbsp; 1. A mobile terminal with the WAP user proxy function (such as a WAP mobile phone) sends a WAP service request to a website through a micro-browser running internally. The request is intercepted by the WAP gateway and the information content is encoded and compressed to reduce network data traffic. A mobile terminal with the WAP user proxy function (such as a WAP mobile phone) sends a WAP service request to a website through a micro-browser running internally. This request is first intercepted by the WAP gateway and encoded and compressed to reduce network data traffic. at the same time, the WAP protocol is converted to the HTTP protocol as needed.
2. the protocol transfers the processed requests to the corresponding WAP server. On the WAP server side, the requested page is directly interpreted by the server script based on the page extension and other attributes, and then output to the user through the gateway.
I introduced some knowledge about how to build the development environment. Because I used php and apache to develop wap sites. Therefore, add the following section to the AddType section of the http. conf file of apache.
AddType text/vnd. wap. wml. wml
AddType application/vnd. wap. wmlc. wmlc
AddType text/vnd. wap. wmls. wmls
AddType application/vnd. wap. wmlsc. wmlsc
AddType image/vnd. wap. wbmp. wbmp
AddType image/vnd. wap. wbmp. wbmp
Restart Apache. this is OK.
Tested code
Header ("Content-type: text/vnd. wap. wml ");
Echo (" ");
Echo"";
Echo ("
");
Echo date ("l dS of f y h: I ")."
";
Echo 'Hello World !, Hi ';
Echo ("
");
?>