stackOverFlew
stackOverFlew

Reputation: 1499

AFNetworking -- What to use for GET?

Should I use the AFHTTPRequestOperation.h or the AFJSONRequestOperation.h to request a resource (ascii) over http GET?

I was not able to find any example code for this simple task, does everybody use the JSON request method and class even though they are not necessarily requesting JSON?

Upvotes: 0

Views: 61

Answers (1)

Dmitry Shevchenko
Dmitry Shevchenko

Reputation: 32404

AFJSONRequestOperation will try to decode response as json to an object, since you don't need that at all you should probably use AFHTTPRequestOperation

Upvotes: 1

Related Questions