title: Disable URL Encoding of Equals sign in a Parameter Value
body: <p>I have this code below that creates the query parameter collection for a restful web service call</p>
  
  <pre><code>NameValueCollection outgoingQueryString = HttpUtility.ParseQueryString(String.Empty);
  outgoingQueryString.Add("SessionID", _sessionId);
  outgoingQueryString.Add("LoanNumberID", loanId.ToString());
  outgoingQueryString.Add("Nonce", _nonce);
  outgoingQueryString.Add("OtherParams", "Enable_Filter_Show_on_Action_Report=0");
  </code></pre>
  
  <p>The problem is that the last parameter value Enable_Filter_Show_on_Action_Report=0 get's it's '=' encoded to %3d <code>SessionID=319A561B6D&amp;LoanNumberID=351591&amp;Nonce=3262383361&amp;OtherParams=Enable_Filter_Show_on_Action_Report%3d0</code></p>
  
  <p>when it should be</p>
  
  <pre><code>SessionID=319A561B6D&amp;LoanNumberID=351591&amp;Nonce=3262383361&amp;OtherParams=Enable_Filter_Show_on_Action_Report=0
  </code></pre>
  
  <p>short of doing a rewrite after the fact is there a way to prevent this from happening? The service does not return the proper results set because it interprets the %3d as something it needs to filter.</p>
  
  <p>What I did to fix the issue was the following. I just didn't know if there was a way to prevent this in the first place.</p>
  
  <pre><code>string queryString = outgoingQueryString.ToString().Replace("%3d", "=");
  </code></pre>