MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Script to add or set header not working

WebPagetest Forums

Full Version: Script to add or set header not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to set a header using script as below. But its showing script error on click of submit.

setHeader(singletabspace)sl-page: master
Is that your entire script? You need at least 1 navigate command after that to load the page you want to test.
Suppose I want to test I have entered the URL in the URL text input box. I just want to set a header when loading the same I don't want to navigate anywhere. Based on the header my webpage loads differently.
You still need a navigate command in the script. It can be "navigate %URL%" which will navigate to whatever URL was in the URL input but if a script is present it completely takes over the testing flow.
Reference URL's