title: reading Cookies in C#
body: <p>i created php page with these cookies :</p>
  
  <pre><code>setcookie("0","hello+how+are+you",time()+30);
  </code></pre>
  
  <p>in C# i wrote that code to read cookies :</p>
  
  <pre><code>        string webaddr = "http://www.mywebsite.com";
          string cookiesresult = "";
  
          //----Establish Connection to web and get cookies [Commands]----//
          HttpWebRequest httpwr = (HttpWebRequest)WebRequest.Create(webaddr);
          httpwr.CookieContainer = new CookieContainer();
          HttpWebResponse httpwrs = (HttpWebResponse)httpwr.GetResponse();
  
          //----Start Getting Cookies----//
          foreach (Cookie cook in httpwrs.Cookies)
          {
              cookiesresult = cook.Value;
          }
  
          Console.WriteLine("Cookies Recieved : " + cookiesresult);
  </code></pre>
  
  <p>now cookies value should be : hello+how+are+you
  but instead value is        : hello%2Bhowo%2areo%2you </p>
  
  <p>so it exchanged + with o%2 and i don`t know what is the problem</p>