title: HttpWebRequest causes Response does not start with HTTP.Data
body: <p>I am trying to use craigslist bulk posting by doing the following:</p>
  
  <pre><code>HttpWebRequest request = null;
  Uri uri = new Uri("https://post.craigslist.org/bulk-rss/post");
  request = (HttpWebRequest)WebRequest.Create(uri);
  request.Method = "POST";
  request.ContentType = "application/x-www-form-urlencoded";
  request.ContentLength = FormattedXmlDocument.InnerXml.Length;
  using (Stream writeStream = request.GetRequestStream())
  {
      UTF8Encoding encoding = new UTF8Encoding();
      byte[] bytes = encoding.GetBytes(FormattedXmlDocument.InnerXml);
      writeStream.Write(bytes, 0, bytes.Length);
  }
  string result = string.Empty;
  
  request.ProtocolVersion = System.Net.HttpVersion.Version11;
  request.KeepAlive = false;
  try
  {
      using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
      {
          using (Stream responseStream = response.GetResponseStream())
          {
              using (System.IO.StreamReader readStream = new System.IO.StreamReader(responseStream, Encoding.UTF8))
              {
                  result = readStream.ReadToEnd();
              }
          }
      }
  }
  catch (Exception exp)
  {
      // MessageBox.Show(exp.Message);
  }
  </code></pre>
  
  <p>When the this line of code is performed </p>
  
  <pre><code>using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
  </code></pre>
  
  <p>I get the exception:</p>
  
  <pre><code>The remote server returned an error: (500) Internal Server Error.
  </code></pre>
  
  <p>I used fiddler to check the request and it get the following error there:</p>
  
  <pre><code>Response does not start with HTTP.Data:
  </code></pre>
  
  <p>and the pacakage looks like this:</p>
  
  <pre><code>POST https://post.craigslist.org/bulk-rss/post HTTP/1.1
  Content-Type: application/x-www-form-urlencoded
  Host: post.craigslist.org
  Content-Length: 739
  Expect: 100-continue
  Connection: Keep-Alive
  
  &lt;rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cl="http://www.craigslist.org/about/cl-bulk-ns/1.0"&gt;&lt;channel&gt;&lt;items&gt;&lt;rdf:li rdf:resource="TestJobPost1" /&gt;&lt;/items&gt;&lt;cl:auth username="cl@flazingo.com" password="2749saturn" accountID="14" /&gt;&lt;/channel&gt;&lt;item rdf:about="TestJobPost1"&gt;&lt;cl:category&gt;sof&lt;/cl:category&gt;&lt;cl:area&gt;nyc&lt;/cl:area&gt;&lt;cl:subarea&gt;stn&lt;/cl:subarea&gt;&lt;cl:neighborhood&gt;Grasmere&lt;/cl:neighborhood&gt;&lt;cl:jobInfo compensation="100000.00" telecommuting="0" partTime="0" contract="0" nonprofit="0" internship="0" disability="0" recruitersOK="0" phoneCallsOK="0" okToContact="0" okToRepost="0" /&gt;&lt;title&gt;First Position&lt;/title&gt;&lt;description&gt;&lt;![CDATA[teset]]&gt;&lt;/description&gt;&lt;/item&gt;&lt;/rdf:RDF&gt;
  </code></pre>
  
  <p>Any help would be much appreciated.</p>