I’m bumping this. What’s a 7-year necro between friends?
Discussion with Irrat and Katarn makes me wonder why the zero argument version of visit_url() follows redirects, rather than returning an empty buffer and letting KoLmafia send the redirect down to the browser.
I did that - and admitted in this thread that the latter would be the “correct” behavior.
Perhaps it is time to look at it again. Perhaps we can solve the original problem without breaking any scripts.