easy:SetOpt_Unrestricted_Auth(goahead)
gohead
parameter to 1 to make libcurl continue to send
authentication (user+password) credentials when following locations, even when
hostname changed. This option is meaningful only when setting
#CURLOPT_FOLLOWLOCATION
.
By default, libcurl will only send given credentials to the initial host name as given in the original URL, to avoid leaking username + password to other sites.