when i insert get request through the url manually it works fine but when trying to pass it through jquery ajax im getting a return error
Uncaught SyntaxError: Unexpected token [
it has to do with the way im passing param[SIGNATURE] but i dont know any other way to pass it , i cant use SIGNATURE:signature please dont recommend that it has to be how it is in url below
https://www.example.com/api/file.asp?userkey=USERKEY&action=ACTION¶m[SIGNATURE]=SIGNATURE
$.ajax({
type: 'GET',
url: URL,
crossDomain:true,
data: {
userkey: key,
action: action,
param[SIGNATURE]:signature},
success: function(data){
console.log(data) ;
}
})
im trying to send this xml through jquery to the target
<REQUEST>
<USERKEY>key</USERKEY>
<ACTION NAME="action">
<PARAMETER NAME="signature">signature</PARAMETER>
</ACTION>
</REQUEST>