in reply to Re: AnyEvent::HTTPD -> Extra Callback after response?
in thread AnyEvent::HTTPD -> Extra Callback after response?

I agree. It also may be helpful to know what program is used to make the request. Browsers, especially Google Chrome, is notorious for opening multiple connections at once "just in case any of them doesn't work".

For testing basic HTTP stuff, i recommend installing LWP (cpan install LWP). This gives you the nice HEAD script. Then run
HEAD -E http://localhost:8123/test

This will dump the headers of the full response chain (e.g. multiple headers if there is a redirect or whatever).

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'