archived
Hello, I'm new here
Posts: 0
|
 |
« Reply #1 on: August 19, 2005, 10:19:48 am » |
|
There are two possibilities: 1. You can add to your core a routable ip. When open your browser from the phone and go to http://<your_ip_address>/pluto-admin/check.wml. 2. If you don't want to add a routable ip to the core, you will need to use another linux machine which has one. There, you'll have to create a file "check.wml" which uses 'curl' to access the wap page from the core: <?php Header( "Content-type: text/vnd.wap.wml"); $Message=queryServer($_SERVER['QUERY_STRING'],'http://<your_core_ip_address>/pluto-admin/check.wml'); print $Message; function queryServer($params,$url) { $defined_vars = get_defined_vars(); $user_agent = @$defined_vars['HTTP_USER_AGENT']; $ch = curl_init(); $serverAddress=($_SERVER['QUERY_STRING']!='')?$url.'?'.$_SERVER['QUERY_STRING']:$url; curl_setopt($ch, CURLOPT_URL, $serverAddress); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); return $result; } ?> There, you will be able to access the wap site from your phone's browser like this: http://<your_routable_ip_address>/<the_path_to_wml_page>/check.wml.
|