added ways to obtain token and connection pool for PUT through proxy