If you need that information you should use the full OO interface (see LWP::UserAgent).