AFNetworking
allows you to add an NSDictionary
of parameters to a request, and it will append them to the request. So if I wanted to do a GET
request with ?q=8&home=8888
I'd just making an NSDictionary like @{@"q": @"8", @"home": @"8888"}
very simply.
Is there a way to do this with NSURLSession
/ NSURLConnection
/ NSURLRequest
?
I know I can use NSJSONSerialization
for appending JSON data, but what if I just want them as GET
parameters in the URL? Should I just add a category?