Fixed: Null User-Agent would throw NullReferenceException
Added support for the Token Header