6

I am sure it already exists somewhere, just can't find it.

Jader Dias
  • 88,211
  • 155
  • 421
  • 625
  • 2
    For reference, the actual parsing class is called CookieParser (accurate), but is internal.. its functionality is exposed via the container. – meandmycode Aug 08 '09 at 17:36

1 Answers1

9

I think it sounds like you want the CookieContainer.SetCookies method:

Followed by the CookieContainer.GetCookies method to get the parsed CookieCollection:

mckamey
  • 17,359
  • 16
  • 83
  • 116