title: URI too long on post
body: <p>I am making a request using the RestClient and RestRequest, after adding the parameters I get </p>
  
  <p>Error:</p>
  
  <pre><code>Invalid URI: The URI string is too long. 
  </code></pre>
  
  <p>I'm assuming this has something to do with it not posting the data correctly, Here is my code:</p>
  
  <pre><code>RestClient client = new RestClient();
  client.BaseUrl = "URL";
  client.Authenticator =
      new HttpBasicAuthenticator("api",
              "KEY");
  RestRequest restRequest = new RestRequest(Method.POST);
  restRequest.AddParameter("domain",
              "DOMAIN", ParameterType.UrlSegment);
  restRequest.Resource = "{domain}/messages";
  restRequest.AddParameter("from", (string) sender["alias"] + "&lt;email&gt;");
  restRequest.AddParameter("to", (string)recipient["alias"] + "&lt;" + (string)recipient["email"] + "&gt;");
  restRequest.AddParameter("subject", subject);
  restRequest.AddParameter("html", body);              
  var result = client.Execute(restRequest);
  if (result.StatusCode != System.Net.HttpStatusCode.OK)
  {
       throw new Exception(result.ErrorMessage,new Exception(result.StatusCode + " - " + result.StatusDescription));
  }
  </code></pre>
  
  <p>The body parameter could be very long as it is a HTML email.  What causes the above error?</p>
  
  <p>Here is the request that the code makes using a shorter body so that it does send
  <a href="http://pastebin.com/HgbBHVpC" rel="nofollow">http://pastebin.com/HgbBHVpC</a></p>
  
  <p>Full stack trace including message trying to send <a href="http://pastebin.com/dRhXire6" rel="nofollow">http://pastebin.com/dRhXire6</a></p>