Is there a way to get the named HTTP parameters in a NSURLRequest? Eg.
GET http://x.y.com/z?name=hello&age=13 or
POST http://x.y.com/z, with payload “name=hello&age=13”
Is there a method to retrieve the value “hello” from the key “name”? The equivalence in Java would be “request.getParameter(“name”)” inside a servlet.
The NSURLProtocol class reference talks about retrieving properties by keys
When I use it on an NSURLRequest, I always get null returned.
The documentation also mentioned something about using categories for protocol specific things, which I assume HTTP parameter would be HTTP protocol specific. But I’m a newbie and am not quite sure how to use categories to do it.
I could probably parse the thing manually. But, surely there must be a library call to handle this!!!