Guest User

Untitled

a guest
Nov 21st, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <script>
  2. $('.zzz').click(function (e)
  3. {
  4. e.preventDefault();
  5. e.stopPropagation();
  6.  
  7. $.ajax({
  8. url: '/XXX/yyy',
  9. data: { test: "hello" },
  10. type: "post",
  11. success: function () { alert("success"); },
  12. error: function () { alert("error"); }
  13. });
  14. });
  15. </script>
  16.  
  17. public class XXXController : AsyncController
  18. {
  19. [HttpPost]
  20. public ActionResult YYY()
  21. {
  22. return null; // ====== NEVER REACHES HERE
  23. }
  24. }
  25.  
  26. Request URL:http://localhost:47038/xxx/yyy
  27. Request Method:POST
  28. Status Code:301 Moved Permanently
  29. Remote Address:[::1]:47038
  30. Referrer Policy:no-referrer-when-downgrade
  31.  
  32. Response Headers
  33. =================
  34. Access-Control-Allow-Origin:*
  35. Content-Length:154
  36. Content-Type:text/html; charset=UTF-8
  37. Date:Tue, 21 Nov 2017 16:02:23 GMT
  38. Location:http://localhost:47038/xxx/yyy/
  39. Server:Microsoft-IIS/10.0
  40. X-Frame-Options:SAMEORIGIN
  41. X-Powered-By:ASP.NET
  42. X-SourceFiles:=?UTF-8?B?QzpcdmF1bHRccHJpbnRlcnBpeG12Y3VpXFByaW50ZXJQaXhNdmNVSVxYWFhcWVlZ?=
  43.  
  44. Request Headers
  45. ================
  46. view source
  47. Accept:*/*
  48. Accept-Encoding:gzip, deflate, br
  49. Accept-Language:en-GB,en-US;q=0.9,en;q=0.8
  50. Connection:keep-alive
  51. Content-Length:10
  52. Content-Type:application/x-www-form-urlencoded; charset=UTF-8
  53. Cookie:ASP.NET_SessionId=rargvavdg0reeuhqvqkznsaj; MachineToken=a2fec363-6318-4ec3-8d2c-0eee116fc778; __RequestVerificationToken=80gj5joNWUpBjgjOsxkV0SkDwhrX3fNbzYTZrTaUGpJXlIEY7nyguehSDpz525JKyNfjlI5Two-poQs1dC2jw0kWnpvnK74iz4X3KV5MtSI1
  54. Host:localhost:47038
  55. Origin:http://localhost:47038
  56. Referer:http://localhost:47038/xxx/Index/?product=puzzle
  57. User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
  58. X-Requested-With:XMLHttpRequest
  59.  
  60. Form Data
  61. ==========
  62. test:hello
Add Comment
Please, Sign In to add comment