Post request
David Feugey (2125) 2709 posts |
I use NetSurf a lot. But sometimes, it’s… pfffff. For example, impossible to log-in automatically here with the right credentials. One solution would be to be able to send a form automatically from NetSurf. Perhaps with some simple JS or some kind of special local web page? |
Steve Pampling (1551) 8170 posts |
In terms of using NetSurf would a saved file with the login page link and keeping the NetSurf Cache in RAMDisc do the job? The problem seems to revolve around the validity of cookies for the current session so blowing away all cookies1 at the end of the session should leave you ready to go the next time. 1 Actually that’s blowing away the complete cached items (oh, and giving you a faster cache during the session. |
John WILLIAMS (8368) 493 posts |
You might care to try my method, which has been well scoffed at, but works impeccably! Get it from here |
David Feugey (2125) 2709 posts |
And remove the cookies too. An all in one solution :) |
John WILLIAMS (8368) 493 posts |
NetSurf, like other browsers, saves its cookies on quitting, so it has to be quitted before manipulating the file. Someone really clever could probably manipulate the cookies in memory, but this works! |
David Feugey (2125) 2709 posts |
Anyway, since I don’t go to the GIT part of the website, or connect with another computer, there is no disconnection problem here. So the HTML file is enough :) Stupid question; how did you manange to generate the csrf token? |
John WILLIAMS (8368) 493 posts |
I’m afraid that part was a form posted here somewhere by someone else. I can take no credit for that! My bit was the parsing of the cookie file and re-writing it with any lines referring to ROOL omitted! Then stringing the lot together in a RISC OS application so that it does the job. Perhaps whoever devised the form will see this and answer that – I just used it! |
John WILLIAMS (8368) 493 posts |
And now may be totally redundant! see: https://www.riscosopen.org/forum/forums/1/topics/15167 Tant pis ! |
David Feugey (2125) 2709 posts |
The credentials automatically filled are still very useful. |