The following URI works in my browser (getting back the intended xml file):
http://ipaddress:port/server/gate?Command=GET%26info
But when I write the following to work with jQuery, it doesn't. The response is 200 OK but I get a blank XML file.
$(document).ready(function() {
$.ajax({
type: "GET",
url: "http://ipaddress:port/server/gate?Command=GET%26info",
dataType: "xml",
success: parseXml
});
});
I tried replacing the %26
with &
but that doesn't work either. Is there something I am fundamentally doing wrong?