title: Url minus query string in Objective-C
body: <p>What's the best way to get an url minus its query string in Objective-C? An example:</p>
  
  <p>Input:</p>
  
  <pre><code>http://www.example.com/folder/page.htm?param1=value1&amp;param2=value2
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>http://www.example.com/folder/page.htm
  </code></pre>
  
  <p>Is there a <code>NSURL</code> method to do this that I'm missing?</p>