Problem using $.get - URL encoding issue
Problem using $.get - URL encoding issue
I am trying to use $.get to post a XML string to a processor but when it sent, the < and > are encoded which is hacking the request. How can I fix this so these items are not encoded?
sURL =
https://www.domain.com/processxml.do?xmldata=<txn><ssl_merchant_ID>12345</ssl_merchant_ID>
$.get(sURL,function(data({
});
If I view the 'GET' request in Firebug it appears as
...
Which then causes
XML Parsing Error: no element found Location: moz-nullprincipal:{4c54e404-eb18-fb4d-b464-f6fbbc42817f} Line Number 1, Column 1:
^
mse
Topic Participants
mike.erickson