I am messing with OverTheWire games and stumbled upon a problem which I'd like to solve my way. Simple web page with authorization which gives me a code I need if my request has proper referrer. In w3m for example I can add to my initial request a header "Referer", but this request stumbles upon authorization. After I input my login and password I obviously automatically send a new request but this time it goes without my header and therefore I can't get the code. Then I am in interactive mode, where I can refresh the page, but again, I have no idea how (if it is possible) to push there a header I want.
I know that this is a one-liner with curl, but I'd like to know if I can do that midsession in w3m or other text browser.
I googled this a lot, all instructions on that matter have weird options that no longer exist (if they existed). Supposedly I can add referer to siteconf file, but I couldn't figure how. All I can find is "no_referer" option which is disabled. But there is still no referer among the headers.
If you want to try it yourself here is the page.
Credentials are:
natas4:tKOcJIbzM4lTs8hbCmzn5Zr4434fGZQm