News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Accessing Pluto with mobile phones without symbian

Started by nomore, August 07, 2005, 08:46:50 PM

Previous topic - Next topic

archived

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

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.