One problem i encountered with pure WWW::Mechanize was Content-Encoding (compression). At least the version i have installed here announces to the server that it accepts gzip compressed content but doesn't.
Try to use WWW::Mechanize::GZip instead and see if the header problem clears up.
Don't use '#ff0000':
use Acme::AutoColor; my $redcolor = RED(); All colors subject to change without notice.