use the special method because the generic way of setting headers is written to throw an exception for UserAgent