LWP 5.805, which is packaged for CentOS5, doesn't export or use $Net::HTTP::SOCKET_CLASS, causing it to warn when setting the socket class to IO::Socket::INET6.
Handle STDIN not being a TTY more gracefully.