Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: RE: Headers

$
0
0
Hi Arka. WebHeaderAdd gets used when you need to add a custom header which is not "standard", for example if you want to send a new Dynatrace header, you would use WebHeaderAdd("X-dynaTrace","NA=Login_New"); WebModifyHttpHeader on the other hand is used to change "standard" headers such as Accept-Language. If you wanted to change Accept-Language: en-us to Accept-Language: en-GB, you would use WebModifyHttpHeader("Accept-Language", "en-GB"); If you look at an unmodified script, you'll see certain headers get send by default, these are the ones I mean are "standard". In your case, you have 2 options. 1. Add the headers manually with WebHeaderAdd or; 2. Have Silk Performer record those for you in SETTINGS | ACTIVE PROFILE | WEB | RECORDING | RECORD. Under record additional http headers click add and add the headers you want recorded. Recording additional headers might not be suitable in some scenarios, for example if the header values are dynamic, you'll get the hardcoded values in the script and will need to customize them. I hope this answers your question. Best regards, Ciaran.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>