I trying to make a call to an external domain using $.ajax() and it WORKS, the server receives the call, but the response in firebug errors out in jquery.js line 7760. I've been beating my head at this all day and don't feel like I've made it much further.
$.ajax({
type: "GET",
url: "http://admin:asdfg@149.50.143.241:81/stream.jpg",
//data: {},
//async: true,
//contentType: "application/jsonp; charset=utf-8",
//headers: {
// 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
// 'Accept': '*/*',
// 'Authorization': 'Basic ' + auth
//},
//timeout: 500,
dataType: "jsonp",
//crossDomain: true,
beforeSend: function (req) {
req.setRequestHeader('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5');
req.setRequestHeader('Accept', '*/*');
req.setRequestHeader('Authorization', 'Basic ' + auth);
},
success: function (data) {
alert("Success");
}
});