added exception swallowing for setRequestHeader