The Curl request is being duplicated. What I noticed is that the duplicated request is always sent without the user/pass, maybe this is a hint to what the issue is.