Creating a cookie from a string

Hey, so there is this cookie I got using Watin and im trying to create a cook container to store the cookie in and add it to my httpwebrequest but im not sure what to fill in for the values.

This is the parameters required:

System.Net.Cookie cookie = new System.Net.Cookie(name, value, path, domain); 

This what is inside my string (cookie):

"__utma=248210461.748079710.1440624966.1440712678.1440718190.3; __utmb=248210461.18.10.1440718190; __utmz=248210461.1440624966.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1; __utmc=248210461; username=BUaN7NXvpf1tI0cpVXjkMznJWhuWKqAl; password=tfo%2b6L53ZbNXX5Cmo5pSMVFmtmY4IW7a"

This is my code: http://ift.tt/1VfjGvk

Thank you!

by FiendBusa via /r/csharp

Leave a Reply