added the ability to specifiy http headers