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

-Crew

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. Igor Markov

    Igor Markov Guest

  3. web_add_header("XYZ","{token}"); xyz is name of token and {Token } is value of token
     
  4. There are 7 tokens are there which is dynamic how to add it
     
  5. add seven times one by one ..
     
  6. I am getting 401 error for that
     
  7. Vinit Teje

    Vinit Teje Guest

    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
     
  8. Silky Mishra

    Silky Mishra Guest

    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