title: How to write a HTTP Request
body: <p>Hello I try to write a HTTP Request in C# (Post), but I need help with an error</p>
  
  <p>Expl: I want to send the Content of a DLC File to the Server and recive the decrypted content.</p>
  
  <p>C# Code</p>
  
  <pre><code>public static void decryptContainer(string dlc_content) 
  {
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://dcrypt.it/decrypt/paste");
      request.Method = "POST";
      request.ContentType = "application/x-www-form-urlencoded";
      request.Accept = "Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  
      using (StreamWriter writer = new StreamWriter(request.GetRequestStream(), Encoding.ASCII))
      {
          writer.Write("content=" + dlc_content);
      }
  
      HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  
      using (StreamReader reader = new StreamReader(response.GetResponseStream()))
      {
          Console.WriteLine(reader.ReadToEnd());
      }
  }
  </code></pre>
  
  <p>and here I got the html request</p>
  
  <pre><code>&lt;form action="/decrypt/paste" method="post"&gt;
      &lt;fieldset&gt;
          &lt;p class="formrow"&gt;
            &lt;label for="content"&gt;DLC content&lt;/label&gt;
            &lt;input id="content" name="content" type="text" value="" /&gt;
           &lt;/p&gt;
          &lt;p class="buttonrow"&gt;&lt;button type="submit"&gt;Submit »&lt;/button&gt;&lt;/p&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>{
      "form_errors": {
        "__all__": [
          "Sorry, an error occurred while processing the container."
         ]
      }
  }
  </code></pre>
  
  <p>Would be very helpfull if someone could help me solving the problem!</p>