Global HTTP Headers: 1. Configure 'Additional HTTP Header' on the Client/Profiles - HTTP: Browser tab Example: MyHeader: anyvalue #Every HTTP client request will include this header
Per request HTTP Headers: 1. Use the ADDITIONAL_HEADER or ADDITIONAL_HEADER_FROMVAR command in your action list
Static Example: 1 GET http://192.168.1.1/index.html 1 GET http://192.168.1.1/index.html<ADDITIONAL_HEADER="MyHeader: anyvalue"> #Only the 2nd http request will include the defined header
Dynamic Example: ASSIGN VARIABLE <myvar1 "MyHeader: "> #Assigns the header name value 'MyHeader: ' to myvar1 ASSIGN VARIABLE <myvar2 UNIFORM 10 20> #Assigns a random value between 10 and 20 to myvar2 ASSIGN VARIABLE <myvar3 myvar1 myvar2> #Combines two variables as myvar3 creating "MyHeader: XX" where XX is a value between 10 and 20 1 GET http://192.168.1.1/index.html<ADDITIONAL_HEADER_FROMVAR=myvar3> #This will send a different header value for each HTTP request, variable assignments can be static strings, random or sequential number values or custom values assigned from a forms database file. FormsDB example:
Create Form_0001 and enable "auto increment" with header values e.g.: Cookie: 1234=abcd Cookie: 5678=efgh .... Action List: ASSIGN VARIABLE <myvar101 Form_0001.$1> 1 GET http://192.168.1.1/index.html<ADDITOINAL_HEADER_FROMVAR=myvar101> 1 GET http://192.168.1.1/page2.html<ADDITOINAL_HEADER_FROMVAR=myvar101> #User 1 will use the first value from the formsDB for both gets, user 2 will use the second formsDB value for both gets et al.