What’s the best way to get an url minus its query string in Objective-C? An example:
Input:
http://www.example.com/folder/page.htm?param1=value1¶m2=value2
Output:
http://www.example.com/folder/page.htm
Is there a NSURL method to do this that I’m missing?
There’s no NSURL method I can see. You might try something like:
Testing looks good:
Running this produces: