Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9115029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:20:04+00:00 2026-06-17T04:20:04+00:00

I am trying to use JMeter to load test a web login form running

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:20:06+00:00Added an answer on June 17, 2026 at 4:20 am

    I finally found the answer to my problems, so if anyone else experiences the same hardships please check this site out.

    http://ertw.com/blog/2010/06/29/load-testing-a-rails-app-and-the-authenticity_token/

    The problem I was having is authenticating against a Rails web app that had a hidden authenticity_token element. A regular expression is needed to extract the dynamic value and then include it in the form post in JMeter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use JMeter to test a web application, but there is no
I'm trying to use JMeter to test our web application and I'd like to
trying to use hibernate with my web app and getting following exception: Initial SessionFactory
I am trying to test a web service with Jmeter. The web service is
I am a newbie in web-development and am trying to use Jmeter for doing
I am trying to load test a web application that uses SAML for SSO,
Hi I'm trying to automate my JMeter load balancing test with the jmeter-maven-plugin from
I'm trying use struts2-jasperreports plugin but getting an error with the type result: Grave:
I was trying use svn to find a checkin using svn log, but it
I am trying use std::copy to copy from two different iterator. But during course

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.