in reply to LWP handlers examples?

"Handlers" in LWP::UserAgent
Add handler to be invoked in the given processing phase. For how to specify %matchspec see "Matching" in HTTP::Config.