Re: [PATCH 2/5] connectivity: Add libxml2 as a dependency

2013-02-19 Thread Jonh Wendell
HTTP Location header and thus no need to parse HTML ever. Regards Marcel -- Jonh Wendell http://www.bani.com.br ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: [PATCH 2/5] connectivity: Add libxml2 as a dependency

2013-02-13 Thread Jonh Wendell
Hi Dan. 2013/2/11 Dan Williams d...@redhat.com On Mon, 2013-02-11 at 15:30 -0200, Jonh Wendell wrote: In these patches I want to fix the 511-http-status. As it's something new, of course most hotspots don't use that (including my employer). Almost all of them rely on 30X Moved with help

[PATCH 0/5] Handle HTTP error 511

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@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

[PATCH 1/5] connectivity: change the connected member for a more generic one

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@oiwifi.com.br use now the enum State, adding the Behind Captive Portal value. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- src/nm-connectivity.c | 59 +-- src/nm-connectivity.h | 13 src

[PATCH 2/5] connectivity: Add libxml2 as a dependency

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@oiwifi.com.br libsoup already depends on libxml2 but we need to explicitly link to it. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- configure.ac| 14 +++--- src/Makefile.am | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions

[PATCH 3/5] connectivity: Add the private member login_url

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@oiwifi.com.br It will contain, in the case we are behind a captive portal, the url to login at the captive portal. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- src/nm-connectivity.c | 22 ++ src/nm-connectivity.h | 15

[PATCH 4/5] connectivity: check for http response code 511

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@oiwifi.com.br If 511 code is returned, try to find the URL for the captive portal login. Currently it searches only in the meta http-equiv=refresh tag. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- src/nm-connectivity.c | 111

[PATCH 5/5] api: Added the method CaptivePortalState()

2013-02-11 Thread Jonh Wendell
From: Jonh Wendell jonh.wend...@oiwifi.com.br It returns whether we are behind a captive portal and, if we are, also returns the url to login at the hotspot. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- introspection/nm-manager.xml | 20 src/nm-manager.c

Re: [PATCH 2/5] connectivity: Add libxml2 as a dependency

2013-02-11 Thread Jonh Wendell
in NMConnectivity object. Indeed, for that cases, we would use xml parsing as wispr is xml. 2013/2/11 Dan Williams d...@redhat.com On Mon, 2013-02-11 at 17:10 +0100, Bastien Nocera wrote: On Mon, 2013-02-11 at 10:06 -0600, Dan Williams wrote: On Mon, 2013-02-11 at 12:09 -0200, Jonh Wendell

[PATCH] core: Honor CLI arguments when config file is not found

2013-01-29 Thread Jonh Wendell
If the config file is not present, the Config object is returned empty, even if some configs were passed as command line arguments. This patch honor these arguments in that case. Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- src/nm-config.c | 19 +++ 1 file