title: Exception The server committed a protocol violation. Section=ResponseStatusLine
body: <p>I want to upload files on windows phone but mediafire exception. My code.</p>
  
  <pre><code> public static async Task Upload(byte[] image)
      {
          using (var client = new HttpClient())
          {
              client.DefaultRequestHeaders.ExpectContinue = false;
              client.DefaultRequestHeaders.Add("Accept", "application/xml");
              client.DefaultRequestHeaders.Add("UserAgent", "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0");
              string boundary = "----------" + DateTime.Now.Ticks.ToString("x");
              string hashstr = await Utility.SHA256(image);
              // client.DefaultRequestHeaders.Add("x-filehash", hashstr);
              //client.DefaultRequestHeaders.Add("x-filesize", image.Length.ToString());
              //  client.DefaultRequestHeaders.Add("x-filetype", "image/png");
              client.DefaultRequestHeaders.TryAddWithoutValidation("x-filehash", hashstr);
              client.DefaultRequestHeaders.TryAddWithoutValidation("x-filesize", image.Length.ToString());
              client.DefaultRequestHeaders.TryAddWithoutValidation("x-filetype", "image/png");
              using (var content = new MultipartFormDataContent(boundary))
              {
                  var file = new ByteArrayContent(image);
                  content.Add(file, "Logo.scale-100", "Logo.scale-100.png");
                  string url = String.Format("http://www.mediafire.com/api/upload/upload.php?&amp;uploadkey=&amp;session_token={0}&amp;dropbox=0", Statics.SessionToken);
  
                  using (var message = await client.PostAsync(url, content))
                  {
                      var input = await message.Content.ReadAsStringAsync();
  
                  }
              }
          }
      }
  </code></pre>
  
  <p>`
  I'm programming on windows phone 8.1. help me please.</p>