title: How to send HTTP POST request which is of type "text/xml"
body: <p>I want to send the HTTP POST request which is of type "text/xml" Along with the request I am sending the Querystring value as :</p>
  
  <pre><code>"?wicket:interface=:9:XXOIForm:transactionForm:componentListPanel:componentListView:0:component:expressEntryContainer:expressEntry::IBehaviorListener:0:&amp;wicket:pcxt=XXOIForm&amp;random=0.48316250719134435"
  </code></pre>
  
  <p>Here are the few request headers I am adding manually</p>
  
  <pre><code>request.Headers.Add("Accept-Language", "en-us,en;q=0.5");
  request.Headers.Add("Wicket-Ajax", "true");
  request.Headers.Add("Wicket-FocusedElementId", "id1a");
  </code></pre>
  
  <p>This all log I logged through the HTTP Anlayzer tool.</p>
  
  <p>But I am not able to bypass this request. Please suggest me Is there is any way to send the HTTP POST request which is of type <code>"text/xml"</code>?</p>
  
  <p>Or What I need to send in request headers?</p>
  
  <p>Yes I am sending the post data in Byte Stream format only 
  See I am having following code to send post data</p>
  
  <pre><code>protected void WritePostDataToRequest(string postData)
      {
  
          postData = postData.Replace("/", "%2F").Replace(",", "%2C").Replace(" ", "+").Replace("!", "%21").Replace("#", "%23");
          data = encoding.GetBytes(postData);
          request.ContentLength = data.Length;
          newStream = request.GetRequestStream();
          newStream.Write(data, 0, data.Length);
          newStream.Close();
      }
  </code></pre>
  
  <p>Also I already added the request header content type.</p>
  
  <p>Thanks in Advance...</p>