On Tue, Jan 3, 2012 at 12:44 PM, John J. Foerch <[email protected]>wrote:
> On Tue, Jan 03, 2012 at 10:58:01AM -0800, Sean McAfee wrote: > >What I'd like to do is define a command (or preferably a webjump) that > loads > > the initial page without using a visible buffer, scans it for the links > to > > games that are waiting for me, then directs me to one of them. > > How are your js skillz? Try send_http_request from modules/utils.js to > retrieve the content. It's a coroutine. There are a few uses of it in > the conkeror source, and also on the webjumps wiki page that can be > referred to for an example of how to call it. > > Cool, thanks. > Now, this site obviously requires you to be logged in, so it must have > some kind of cookie to keep track of your logged-in state. I am not 100% > positive that send_http_request will use that, so before we get to the > next step, I would like you to test this to find out whether just that > much works, or whether we need a different approach altogether to deal > with the login. > > Apparently the cookies are sent, since when I examine the responseText of the request, I see details I should only see if I'm logged in (the names of the games I'm playing, for example). What next?
_______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
