curl to follow redirects and more logs in debug mode