View Single Post
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#23
Originally Posted by ginggs View Post
Maybe I just need to return the correct HTTP response code?
Yes, I modified the code as follows and it seems to have done the trick!
Code:
<?php
$headers = apache_request_headers();

if(isset($headers['X-Nokia-WLAN-Connectivity-Test']))
{
    http_response_code(204);
    exit();
}
?>
<html><body>WLAN Connectivity Test</body></html>
204 is the HTTP response code for No Content.

I guess this is how the N9 detects whether it has hit a wifi hotspot landing page; a landing page would inject some content and not return 204.

I'll try to host this somewhere and test it for a few days,
 

The Following 4 Users Say Thank You to ginggs For This Useful Post: