JMETER + POST + anti-forgery token

Looking into XSRF/CSRF Prevention in ASP.NET MVC and Web Pages it appears that you're either sending an incorrect __RequestVerificationToken parameter value or completely miss the step.

If the current HTTP request already contains an anti-XSRF session token (the anti-XSRF cookie __RequestVerificationToken), the security token is extracted from it. If the HTTP request does not contain an anti-XSRF session token or if extraction of the security token fails, a new random anti-XSRF token will be generated.

So your test should look like:

  • Open Login Page (HTTP Get Request)

  • Once done you can refer the extracted value as ${token} in the next request

Check out ASP.NET Login Testing with JMeter article for more detailed information and step-by-step instructions if needed

最新文章

  1. CSS Table Gallery
  2. 【SAP Business Objects】Universe中的@prompt语法
  3. Django模块学习- django-pagination
  4. 布置theano(Ubuntu14.04 LTS)
  5. iot表和heap表排序规则不同
  6. uva 657
  7. 【源代码】StringBuilder和StringBuffer震源深度分析
  8. 新笔记tst
  9. Redux入门示例-TodoList
  10. day0203 XML 学习笔记
  11. Kafka学习笔记1:概念
  12. mac终端命令及pycharm常用快捷键记录
  13. Linux跑脚本用sh和./有什么区别?(转)
  14. 用js实现贪吃蛇
  15. 【Teradata】配置PE和AMP(congfig和reconfig工具、vprocmanager)
  16. 如何调用layer.open打开的的iframe窗口中的JS
  17. npm 发布包和删除包(2019最新攻略)
  18. C# 调用Tesseract实现OCR
  19. MySQL高可用方案-PXC环境部署记录
  20. [LeetCode&Python] Problem 108. Convert Sorted Array to Binary Search Tree

热门文章

  1. C语言编译器
  2. scrapy RuntimeError: maximum recursion depth exceeded while calling a Python object 超出python最大递归数异常
  3. keil5工程移植到IAR工程
  4. linux 进程管理与调度(一)
  5. WebService知识点
  6. 2013.4.23 - KDD第五天
  7. oracle添加序列
  8. suse12安装详解
  9. python模块统计
  10. 小程序~获取手机号getPhoneNumber提示该appid没有权限