Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. X-Requested-With:XMLHttpRequest
  2.  
  3. var xhr = new XMLHttpRequest();
  4. xhr.open('GET', '/');
  5. xhr.send();
  6.  
  7. Accept:*/*
  8. Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
  9. Accept-Encoding:gzip,deflate,sdch
  10. Accept-Language:en-US,en;q=0.8
  11. Connection:keep-alive
  12. Cookie: ....
  13. Host:stackoverflow.com
  14. If-Modified-Since:Sat, 31 Dec 2011 01:57:24 GMT
  15. Referer:http://stackoverflow.com/questions/8685750/how-does-an-ajax-request-differ-from-a-normal-browser-request/8685758
  16. User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11
  17.  
  18. window.location.href = "j_security_check?j_username=" + dlg.getForm().findField('j_username').getValue() + "&j_password=" + dlg.getForm().findField('j_password').getValue();
  19.  
  20. $_SERVER['HTTP_X_REQUESTED_WITH']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement