thanks, heiko. my site relies heavily on proper handling many host subdomains. for example, my auth subdomain handles OAuth intereactions with google, which are subdomain specific. and then each of my users has their own vanity subdomain, but they nicely share session information. once logged into one subdomain, they can go to another. so, for my case, the usual testing just within sites (get_ok('/')) is insufficient. I really do need to work with full http:// and URLs to obtain the subdomain and make different decisions based on it. I guess my app is unusual :-(.
localhost as a testname for websites was IMHO never a great choice as the solo definition. localhost.test would have been a better (or additional) choice. localhost.test should keep the testing to remain on 127.0.0.1, and just work the same way any other domain name works---subdomains and everything. grrr. alas, we live with what we have.
indeed, browsers treat subdomains on localhost differently. chrome handles subdomains on localhost, but the M useragent and firefox and safari do not.
so here is one solution, although this one does not work in chrome: Add 'localhost.test' and 'auth.localhost.test' at the end of 127.0.0.1 localhost in /etc/hosts and `# morbo -v appname -l http//localhost.test:3000`. now,
http://localhost.test:3000/ works just fine with safari, firefox, and the Mojolicious test agent (but not chrome).
in the end, this was not a Mojolicious bug, but a web bug.
thanks for the help, heiko.
regards,
/iaw