[PATCH 0/5] Handle HTTP error 511



From: Jonh Wendell <jonh wendell oiwifi com br>

This series of patches fixes (on the NM side) bug #670394.

Basically we added a new method in the API: CaptivePortalState (), which
returns a boolean indicating whether we are behind a captive portal, and a
string that contains the login url, as supplied by the captive portal.

The main change is in the internals of NMConnectivity object: We check if the
http status is 511 and the try to discover the login url. Currently we only check
for the url in the <meta> html tag. There's room to improve this in the future.

Next step will be to patch gnome-shell to make use of this new API and show to
the user a nice UI.

For convenience, these patches are also hosted on github:
git://github.com/jwendell/NetworkManager.git (branch rfc6585)

Jonh Wendell (5):
  connectivity: change the "connected" member for a more generic one
  connectivity: Add libxml2 as a dependency
  connectivity: Add the private member login_url
  connectivity: check for http response code 511
  api: Added the method CaptivePortalState()

 configure.ac                 |  14 +++-
 introspection/nm-manager.xml |  20 +++++
 src/Makefile.am              |   4 +-
 src/nm-connectivity.c        | 190 ++++++++++++++++++++++++++++++++++---------
 src/nm-connectivity.h        |  22 +++--
 src/nm-manager.c             |  43 ++++++++--
 6 files changed, 234 insertions(+), 59 deletions(-)

-- 
1.8.1.2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]