Metadata requests are now also setting a User-Agent header.
Improve diagnostic output when trying to get metadata.