I’m using the sendAndLoad method to load some data from a PHP script. The problem is (at least seems to be) that the site is a testing folder that is password protected - it requests a user name and password before you can look at anything in the directory.
So sometimes the script fails because (or as I said, it seems to be because) it’s not getting the user and name and password and so the request is denied.
First, does it sound like I have correctly diagnosed the problem?
Second, is there any way to send the username and password, perhaps using addRequestHeader? (I’ve taken a look at addRequestHeader but haven’t been able to make much sense of it yet.)
Thanks for any insight you have on this.