Friday, October 4, 2019

Difference between Web_add_header And Web_add_auto_header in load runner

There is a simple difference between these 2 functions,lets have a look.

Web_add_header:
Web_add_header function is used to add header only to HTTP request that follows it.

web_add_auto_header:

Web_add_auto_header function is used to add header to all the consecutive HTTP requests.
Web scripts usually send the standard header requests automatically for each request. If you need additional headers to be sent then you can use web_add_header or web_add_auto_header.

How to enable Web_add_header and web_add_auto_header:
These are automatically generated in your script, if you enable this in Record -> re cording options->Advanced->Headers->Record Headers not in list.