Hi there, I have this function
$.ajax({
url:aurl,
method:'GET',
beforeSend:function(req) {req.setRequestHeader('Authorization', auth);},
cache:false,
dataType:"json",
error:function() {...},
success:function(t) {...}
});
However, the parameters:
- method
- beforeSend
- Cache
are ignored by my browsers FF3, IE8 and Chrome. So, whatever is put there does not change the request sent by the browser to the given url, eg: cannot set method to "POST", or more importantly no Authorization parameter can be placed as part of the request so that the HTTP Authorization form is processed.
The other strange behaviour is that unless dataType:"json" there will be no request or response sent orreceived as shown using LiveHTTPHeaders in FF3. eg if dataType:"xml".
URL seems to get processed correctly by the browser.
How does one make sure these extra parameters get sent, anyone with these issues?