Error HTTP Status Code 401 Unauthorized during script replay

Error HTTP Status Code 401 Unauthorized during script replay

There are lot of common errors that we keep encountering while using Loadrunner, like HTTP status code 401, 500, 403 etc.

If you encounter error HTTP Status Code 401 Unauthorized, during HTTP/HTML script replay then try below options:

  • Option 1: Add web_set_user(username,password,host:port );
  • Option 2: Record the script after changing the capture level to Wininet level data in Recording option> Network > Port mapping > capture level
  • Option 3: Run the script after enabling Wininet replay instead of sockets option in Run time settings > Internet Protocol > Preferences> Advanced
  • Option 4 : If none of the above option works, record the business flow with fiddler and compare the requests in LoadRunner and fiddler. Identify if any request/header/cookie is missing in the load runner script and causing the issue.

3 thoughts on “Error HTTP Status Code 401 Unauthorized during script replay

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.