json response type and password protected directories

I prefer working with json and then as part of my developers license, I have to host my whmcs behind a password protected directory, so I added this to the curl.