how to make an Ajax call?
Posted: 27 May 2022 18:24
Hi
I have an older application that used below to control VLC via an Ajax call
Now I understand that http requests need a password.
I tried this url in the browser, and it works
but it does not when using it in the Ajax call
Can someone help?
Thanks
Daniel
I have an older application that used below to control VLC via an Ajax call
Code: Select all
$.ajax({
url: "http://192.168.0.76:8080/requests/status.xml?command=pl_next"
});
I tried this url in the browser, and it works
Code: Select all
http://:mypassword@192.168.0.76:8080/requests/status.xml?command=pl_next
but it does not when using it in the Ajax call
Code: Select all
$.ajax({
url: "http://:mypassword@192.168.0.76:8080/requests/status.xml?command=pl_next"
});
Thanks
Daniel