It’s not the user agent, it’s the Accept header. Is it passing the appropriate XML mime type? I used this guide here
Accept