title: Maximum data length for WebClient.UploadString method
body: <p>I have the following code in my asp.net mvc app - </p>
  
  <pre><code>string URI = "http://send.url.com/smsapi/sender.php";     
  string queryParameters= "a long query string";
  
  string xmlResult = "";
  using (WebClient wc = new WebClient())
  {
      wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
      xmlResult = wc.UploadString(URI, queryParameters);
  }
  </code></pre>
  
  <p>My question is how long <code>queryParameters</code> can be for <code>WebClient.UploadString</code> method?</p>