1. SPEForums need your contributions to build up a strong repository of performance engineering resources.

    Dismiss Notice
Dismiss Notice
Hello Guest,

Please reach out to us at anmldubey@gmail.com in case you face any issues with SPEForums. Share your feedback - Click Here

Please support us by sharing performance engineering tutorials/resources with SPEForums.com


How to pass the basic authorization header in loadrunner

Discussion in 'HP Loadrunner' started by Saravanan Srinivasan, Jan 8, 2016.

  1. How to pass the basic authorization header in loadrunner
  2. web_add_header("XYZ","{token}"); xyz is name of token and {Token } is value of token
  3. There are 7 tokens are there which is dynamic how to add it
  4. add seven times one by one ..
  5. I am getting 401 error for that
  6. I have had the same issue using Loadrunner while adding the Oauthheaers, The problem is the headers are generated on the fly and cannot be captured by web_reg_save_param, and hence cannot be passed with web_add_header functions. However, Jmeter has a way to do it. There is a OauthRequest Sampler, which can generate these values. Here is a link you can checkout https://www.google.com/url?sa=t&rct...GQvjqGdU1zxXng&bvm=bv.111396085,d.eWE&cad=rja
  7. As an alternative, can you try setting web_set_sockets_option for "INITIAL_BASIC_AUTH" at start of script? Do update if it works.

Share This Page