Revert to using LWP::UserAgent; add debug output.