What I have:
http://hello.com/what?key=value&key1=value1
What I want:
http://hello.com/what
Now I am splitting an NSURL URL by "?" character and get its first part:
[NSURL URLWithString:[request.URL.absoluteString componentsSeparatedByString:@"?"][0]]
Is this a correct solution or there is more practical/correct one?