6

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

Jader Dias
  • 84,588
  • 150
  • 415
  • 615
  • 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,153
  • 15
  • 79
  • 115