Using standard client to fetch attachments. Fixing the basic auth issue