Guest User

Untitled

a guest
Oct 20th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $.ajax({
  2. username: login,
  3. password: pass,
  4. async : false,
  5. cache: "false",
  6. dataType: 'json',
  7. type: 'get',
  8. url: url,
  9. success: function(data){...}
  10.  
  11. beforeSend: function (xhr) {
  12. xhr.setRequestHeader('Authorization', makeBaseAuth(login, pass));
  13. }
  14.  
  15. var
  16. oWebModule: TWebModule;
  17. sBody: String;
  18. begin
  19. oWebModule := GetDataSnapWebModule;
  20. sBody := oWebModule.Request.Content;
  21. end;
Add Comment
Please, Sign In to add comment