Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: "testurl",
- type: "GET",
- userName:"cloud.admin",
- password:"Round@6EgREss",
- async: false,
- crossDomain: true,
- headers: {
- 'Content-Type' : 'application/json',
- 'Authorization' : 'Basic Y2xvdWQuYWRtaW46Um91bmRANkVnUkVzcw=='
- },
- success: function (data) {
- parsedJSON = JSON.parse(JSON.stringify(data));
- console.log('Response JSON Data--> ' +JSON.stringify(data));
- },
- error: function (jqXHR, textStatus, errorThrown) {
- console.log('Fail Response JSON Data--> ' +JSON.stringify(data));
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement