From caac2628a7b3dafd707c385a50d98a3028085b60 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 23 Oct 2003 00:09:17 +0000 Subject: [project @ 2003-10-23 00:09:16 by jmb] Enable logging into sites which require Basic Authentication Has a couple of issues: 1) Opens the page in the first window in the list 2) Doesn't save the login details so you have to log in to each page. 3) The call to ro_gui_401login_open shouldn't be there. svn path=/import/netsurf/; revision=372 --- desktop/401login.h | 18 ++++++++++++++++++ desktop/browser.c | 1 + 2 files changed, 19 insertions(+) create mode 100644 desktop/401login.h (limited to 'desktop') diff --git a/desktop/401login.h b/desktop/401login.h new file mode 100644 index 000000000..f9a999ebd --- /dev/null +++ b/desktop/401login.h @@ -0,0 +1,18 @@ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2003 John M Bell + */ + +#ifndef NETSURF_DESKTOP_401LOGIN_H +#define NETSURF_DESKTOP_401LOGIN_H + +struct login { + + char *string; +}; + +extern struct login LOGIN; + +#endif diff --git a/desktop/browser.c b/desktop/browser.c index f3b403a80..1eb881f1c 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -363,6 +363,7 @@ void browser_window_callback(content_msg msg, struct content *c, case CONTENT_MSG_REDIRECT: bw->loading_content = 0; + bw->url = xstrdup(error); browser_window_set_status(bw, "Redirecting"); /* error actually holds the new URL */ browser_window_open_location(bw, error); -- cgit v1.2.3