Author Topic: Accessing Pluto with mobile phones without symbian  (Read 15777 times)

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Accessing Pluto with mobile phones without symbian
« on: August 07, 2005, 08:46:50 pm »
Hello

I would like to know how to access pluto(orbiter?) without
having a symbian phone. Would it be possible to access a wap page?

I've asked this question earlier, and then the response was that
it would be available in the next release. Several releases has passed,
but I can't get it to work.

Anyone?

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Accessing Pluto with mobile phones without symbian
« Reply #1 on: August 19, 2005, 11: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.