add custom headers , cookie and basic auth support