MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Explicitly Add cookie to request

WebPagetest Forums

Full Version: Explicitly Add cookie to request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i just wanted to know if this is possible, to add a cookie to a request to determine the difference between having a cookie and not having a cookie (we call different back end services on my page).

How would i tell one test to explicitly set a cookie and another to not have the cookie?

EDIT: OOPS, i put this into the wrong forum..

Thanks!
Sure, you just need to use a script. There is an example of setting a cookie here: http://www.webperformancecentral.com/wik...S_Override (just the last 2 lines of the script matter for setting the cookie).
(06-24-2011 10:45 AM)pmeenan Wrote: [ -> ]Sure, you just need to use a script. There is an example of setting a cookie here: http://www.webperformancecentral.com/wik...S_Override (just the last 2 lines of the script matter for setting the cookie).

Awesome, thanks for the links, I guess I should've read the docs. I'm lazy like that!!
np - the scripting is actually outside of the realm of what I expect people to be able to self-discover (less than 1% of users use it but you can do some cool things with it). Feel free to ping me if you have any questions with it.
Reference URL's