分享

JMeter web login test returns 401 unauthorized

 浸心阁 2015-04-03

I am trying to use JMeter to load test a web login form running on a local VM, but I keep getting a 401 Unauthorized response. I setup a JMeter proxy to record the steps then added the HTTP Cookie Manager but it still will not authenticate.

HTTP Request

Request Redirect

Request 2nd Redirect

This page should be the user's profile page after successful login

The Cookie Manager gets used and adds the _auth_session to the request but the login still fails. The initial request is a POST method passing the username/password info. I can't seem to figure out why it's not actually authenticating. When I record the steps it works fine but playback fails. This appears to be a headless browser issue because recording the same steps in Selenium IDE plays it back perfectly and there is no 401 response. Any ideas would be much appreciated!

Running Windows 7/64

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多