Current time: 10-22-2018, 07:17 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Set Cookie via Script
01-27-2016, 02:14 PM
Post: #1
How to Set Cookie via Script
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
Find all posts by this user
Quote this message in a reply
02-27-2016, 08:22 AM
Post: #2
RE: How to Set Cookie via Script
(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.

Rick Viscomi
Author, Using WebPageTest
http://usingwpt.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)