Utility function to set HTTP download headers