[Chilli] Hotspot Login on Mobile Phones

Devinder Singh devinder at palettemm.com
Thu Nov 12 01:36:02 UTC 2009


Hi Jos,

I had commented out the Java Script comment in coova.html  but the
hotspotlogin.cgi login page does not seems to be displayed on my Nokia
N95 mobile phone. what is see is the redirection logo when i launch my
phone browser and then i see a page error.

I get this error message :

Wireless Service Login Failed Login Must Be Performed through Hotspot daemon.

Btw i have also removed SSL on the hotspotlogin.cgi file to bypass SSL
and use http instead

Please could you let me know how can i allow users to login from their
mobile phones. I managed to get it to run on Windows Pocket PC.

Thanks

Devinder




2009/11/12 Jos Vos <jos at xos.nl>:
> On Wed, Nov 11, 2009 at 09:53:00AM +0100, Wichert Akkerman wrote:
>
>> The problem is not javascript. I run a custom portal which does not
>> use any javascript and also notice problems with iPods/iPhones. It seems
>> that either they do not get a valid DHCP lease, or their TCP traffic is
>> misdirected somewhere.
>
> OK, I looked at my changes.
> In coova.html there is this piece of code:
>
> ==========================================================================
> <script type="text/javascript" language="Javascript">
> //<!--
> function getURLParam(n) {
>  var s = "";
>  var href = window.location.href;
>  if (href.indexOf("?") > -1) {
>    var qs = href.substr(href.indexOf("?"));
>    var qsList = qs.split("&");
>    for (var i = 0; i < qsList.length; i++) {
>      if (qsList[i].indexOf(n + "=") > -1) {
>        var pList = qsList[i].split("=");
>        s = pList[1];
>        break;
>      }
>    }
>  }
>  return unescape(s.replace(/\+/g, " "));
> }
> var loginUrl = getURLParam("loginurl");
> window.document.write("<meta http-equiv=\"refresh\" content=\"5; URL="+loginUrl+"\">");
> function redirect() { window.location = loginUrl; return false; }
> //-->
> </script>
> ==========================================================================
>
> I completely commented this out and removed the "//" lines, so it becomes:
>
> ==========================================================================
> <!--
> <script type="text/javascript" language="Javascript">
> function getURLParam(n) {
>  var s = "";
>  var href = window.location.href;
>  if (href.indexOf("?") > -1) {
>    var qs = href.substr(href.indexOf("?"));
>    var qsList = qs.split("&");
>    for (var i = 0; i < qsList.length; i++) {
>      if (qsList[i].indexOf(n + "=") > -1) {
>        var pList = qsList[i].split("=");
>        s = pList[1];
>        break;
>      }
>    }
>  }
>  return unescape(s.replace(/\+/g, " "));
> }
> var loginUrl = getURLParam("loginurl");
> window.document.write("<meta http-equiv=\"refresh\" content=\"5; URL="+loginUrl+"\">");
> function redirect() { window.location = loginUrl; return false; }
> </script>
> -->
> ==========================================================================
>
> IIRC, this solved the problem, at least for the N95.  I admit it seems
> to be a dirty hack, but it solved my urgent problems and after that I
> didn't do any further research (especially because I do not own any of
> these phones myself).
>
> I'm happy to hear about a more structural solution.
>
> --
> --    Jos Vos <jos at xos.nl>
> --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
>
>



-- 
Devinder Singh   |   R&D Manager
______________________________
Palette Multimedia Berhad (420056-K)
6 Floor, Unit 4,
KPMG Tower
8 First Avenue,
Bandar Utama,
47800 Petaling Jaya, Selangor
Malaysia

m. +60122248306
p.  +60377289880 Ext 502
f.   +60377281080
@ devinder at palettemm.com
www.palettemm.com


More information about the Chilli mailing list