Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198
...commit
http://git.netsurf-browser.org/netsurf.git/commit/fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198
...tree
http://git.netsurf-browser.org/netsurf.git/tree/fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198
The branch, master has been updated
via fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198 (commit)
from 44082f9988c33b6dda519d5cb54d85ee515878b9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198
commit fa8dfa28d194cae3c72dd18d8f91c7c9ecc33198
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Update monkey 401login a little to be easier to work with
diff --git a/docs/using-monkey.md b/docs/using-monkey.md
index c6298dd..f4cb9d6 100644
--- a/docs/using-monkey.md
+++ b/docs/using-monkey.md
@@ -355,10 +355,28 @@ Responses
* `LOGIN OPEN LWIN` _%id%_ `URL` _%url%_ USER _%str%_ PASSWD _%str%_ `REALM`
_%str%_
- The core asked Monkey to ask for identification for the named
- realm at the given URL.
+ The core asked Monkey to ask for identification for the given URL.
-> TODO: Implement support to control the 401LOGIN process
+ This will be *immediately* followed by:
+
+* `LOGIN USER LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a default username of the given string
+
+ This will be *immediately* followed by:
+
+* `LOGIN PASS LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a default password of the given string
+
+ This will be *immediately* followed by:
+
+* `LOGIN REALM LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a realm of the given string
+
+ Subsequent to this message, the user of monkey is at liberty to issue
+ `LOGIN` commands to control the response of the `401LOGIN` process.
### Plotter messages
diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c
index 72f663e..0091315 100644
--- a/frontends/monkey/401login.c
+++ b/frontends/monkey/401login.c
@@ -70,8 +70,10 @@ gui_401login_open(struct nsurl *url,
password = "";
}
- moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s USER %s PASSWD %s REALM %s",
- m401_ctx->num, nsurl_access(url), username, password, realm);
+ moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s", m401_ctx->num,
nsurl_access(url));
+ moutf(MOUT_LOGIN, "USER LWIN %u STR %s", m401_ctx->num, username);
+ moutf(MOUT_LOGIN, "PASS LWIN %u STR %s", m401_ctx->num, password);
+ moutf(MOUT_LOGIN, "REALM LWIN %u STR %s", m401_ctx->num, realm);
return NSERROR_OK;
}
-----------------------------------------------------------------------
Summary of changes:
docs/using-monkey.md | 24 +++++++++++++++++++++---
frontends/monkey/401login.c | 6 ++++--
2 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/docs/using-monkey.md b/docs/using-monkey.md
index c6298dd..f4cb9d6 100644
--- a/docs/using-monkey.md
+++ b/docs/using-monkey.md
@@ -355,10 +355,28 @@ Responses
* `LOGIN OPEN LWIN` _%id%_ `URL` _%url%_ USER _%str%_ PASSWD _%str%_ `REALM`
_%str%_
- The core asked Monkey to ask for identification for the named
- realm at the given URL.
+ The core asked Monkey to ask for identification for the given URL.
-> TODO: Implement support to control the 401LOGIN process
+ This will be *immediately* followed by:
+
+* `LOGIN USER LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a default username of the given string
+
+ This will be *immediately* followed by:
+
+* `LOGIN PASS LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a default password of the given string
+
+ This will be *immediately* followed by:
+
+* `LOGIN REALM LWIN` _%id%_ `STR` _%str%_
+
+ The given login window has a realm of the given string
+
+ Subsequent to this message, the user of monkey is at liberty to issue
+ `LOGIN` commands to control the response of the `401LOGIN` process.
### Plotter messages
diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c
index 72f663e..0091315 100644
--- a/frontends/monkey/401login.c
+++ b/frontends/monkey/401login.c
@@ -70,8 +70,10 @@ gui_401login_open(struct nsurl *url,
password = "";
}
- moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s USER %s PASSWD %s REALM %s",
- m401_ctx->num, nsurl_access(url), username, password, realm);
+ moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s", m401_ctx->num,
nsurl_access(url));
+ moutf(MOUT_LOGIN, "USER LWIN %u STR %s", m401_ctx->num, username);
+ moutf(MOUT_LOGIN, "PASS LWIN %u STR %s", m401_ctx->num, password);
+ moutf(MOUT_LOGIN, "REALM LWIN %u STR %s", m401_ctx->num, realm);
return NSERROR_OK;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org