added option to pull headers from options in http