Added method to set curl headers from hash