AnyEvent::HTTP seems to not work (no error)

No matter what I do, I can’t seem to get AnyEvent::HTTP to return any data. Even a very simple request like

use AnyEvent::HTTP;
http_get "", sub { print $_[1] };

does nothing, so I can only conclude there is a problem with the the module itself.

Hi @ThaddeusB,

Thanks for posting. This basic example won’t work on its own. You need to run it inside of an AnyEvent event loop. Check out this StackOverflow answer for pointers.