MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - How to Set Cookie via Script

WebPagetest Forums

Full Version: How to Set Cookie via Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I am using below script , unable to set cookie. Can you point mistake in below script ?


setCookie www1.XXX.com herokukey='{EXPERIMENT:[1063]}'
navigate http://www1.XXX.com/shop/product/kitchen...r?ID=77589
setViewportSize 1280 1024
(01-27-2016 02:14 PM)badarinathvm Wrote: [ -> ]Hello

I am using below script , unable to set cookie. Can you point mistake in below script ?


setCookie www1.XXX.com herokukey='{EXPERIMENT:[1063]}'
navigate http://www1.XXX.com/shop/product/kitchen...r?ID=77589
setViewportSize 1280 1024

Try using this format:

Code:
setCookie http://www.ebay.com session=286755fad04869ca523320acce0dc6a4

Explicitly specify the protocol (http://) of the host. Also, the value of the cookie looks like JSON output or something, is that intentional? In any case, you can omit the quotes.
Reference URL's