Is there any way to pass HTTP AUTH username and password along with an Ajax.request()? Basically, I’m trying to find the equivalent of:
curl user:pass http://url.com
Is seems this has to be available, but I can’t figure it out. If not, is there another JS alternative?
I’m not sure about Prototype, but you can pass the username and password as the fourth and fifth arguments of the underlying
openmethod ofXmlHttpRequest, as shown here.