title: POST Request with content type "application/x-www-form-urlencoded" is not working in server(QA,UAT...) but works fine locally
body: <p>Below is my POST Request</p>
  
  <pre><code>    request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
  request.Method = "POST";
  request.ContentLength = data.Length;
   if (timeoutOverride.HasValue)
          {
              timeout = timeoutOverride.Value;
          }
          else
          {
              timeout = GetTimeoutForUrl(request.RequestUri);
          }
  
      using (var streamWriter = new StreamWriter(request.GetRequestStream()))
          {
              streamWriter.Write(data);
              streamWriter.Flush();
              streamWriter.Close();
          }
  
         var asyncResult = request.BeginGetResponse(null, null);
          string responseData;
          try
          {
              using (asyncResult.AsyncWaitHandle)
              {
                  bool complete = asyncResult.AsyncWaitHandle.WaitOne(timeout);
                  if (!complete)
                  {
                      ThrowTimeoutError(url, timeout);
                  }
                  using (var webResponse = request.EndGetResponse(asyncResult))
                  {
                      using (var responseStream = webResponse.GetResponseStream())
                      {
                          using (var responseStreamReader = new                StreamReader(responseStream))
                          {
                              responseData = responseStreamReader.ReadToEnd();
                          }
                      }
                  }
              }
  </code></pre>
  
  <p>please help me out , how to make it work on server, i am thinking it is server configuration issue. or else issue with my request, it works locally fine, not working on server.</p>