Comments (1)
Figured out why my captive portal detection app wasn't working at Starbucks hotspots. I'm using Apple's page to check for proxies, which consists of a single line of simple HTML. Before signing in, all my browsers and a REST tool I grabbed off the Play store returned the Starbucks terms of service acceptance page. My detector, however, returned the page as expected when not behind a portal, with one difference: it included a W3C prefix. Upon further inspection, the response headers also showed it was coming from a Microsoft IIS server - probably not what Apple is using to serve their pages. Those headers were also missing from a known correct response. I had thought at first my HTTP client might be locally caching the "success" response, but that obviously wasn't the problem.
Then I noticed I had, for some reason early on (about a year ago), decided to use the following user agent string in my request: CaptiveNetworkSupport/v1.0 wispr
. I think the site I read explaining how iOS devices detected portals mentioned that they used this user agent string, and I thought it would be a good idea to do the same - couldn't hurt. Well, I was wrong. Turns out, the price Starbucks is using returns a fake success page to any clients using that user agent string. This only started about a month ago, when my detection app started malfunctioning, and I also noticed my Macbook was no longer popping up the acceptance page either.
I removed the user agent string, and the expected page was returned. Does anyone know why Starbucks is trying to actively fake out iOS devices?
from captivate.
Related Issues (20)
- App shows up in Recent Apps after signing in to portal
- The signin activity should show the favicon instead of the captivate icon
- Update old code to use v4 support library
- Notification should stay visible until signed in, in case signin activity is closed early
- Show toast when signed in
- Use ActionBar progress bar instead of custom
- Make PortalSigninActivity ActionBar split HOT 1
- Move version number in About activity to ActionBar
- Allow auto-checkin to Foursquare/Facebook/Google on login HOT 1
- Show favicon in notification (like Gmail notifcations)
- Portal tracking, to eventually support auto-login
- Login activity shouldn't be full-width on landscape tablet HOT 1
- Signin shows up in Recent Apps HOT 1
- As a user, I want to optionally re-signin after an interval for auto-timeout portals.
- java.lang.IllegalArgumentException, probably due to WebView bug
- As a user, I want to optionally have the device vibrate when portal is detected
- Notification icon is white-on-light on 2.2
- Switch to using Android Support Library for pre-Honeycomb ActionBar implementation HOT 1
- Add notification option/actionbar icon to disable wifi for a finite time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captivate.