Advertisement
Guest User

Untitled

a guest
Nov 28th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. $.ajax({
  2.  
  3.  
  4. url: "testurl",
  5. type: "GET",
  6. userName:"cloud.admin",
  7. password:"Round@6EgREss",
  8. async: false,
  9. crossDomain: true,
  10. headers: {
  11. 'Content-Type' : 'application/json',
  12. 'Authorization' : 'Basic Y2xvdWQuYWRtaW46Um91bmRANkVnUkVzcw=='
  13.  
  14. },
  15. success: function (data) {
  16. parsedJSON = JSON.parse(JSON.stringify(data));
  17. console.log('Response JSON Data--> ' +JSON.stringify(data));
  18. },
  19. error: function (jqXHR, textStatus, errorThrown) {
  20. console.log('Fail Response JSON Data--> ' +JSON.stringify(data));
  21. }
  22.  
  23. });
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement