I’m having a small problem with AFNetworking.
Im trying to have a simple call to a path with POST parameters (e.g. http://myserver.com/index.php with parameters myParam=1)
I’ve tried using both AFURLConnectionOperation and AFJSONRequestOperation and on both when i output the “request”, it shows {“myParam”:1}, as if its packing my request as json, when actually it should be regular post (the response is JSON , but thats less relevant).
Does anyone know how to overcome this issue except for using NSURLConnection ?
Thank you 🙂
Shai
Just set parameterEncoding to AFFormURLParameterEncoding in your AFHTTPClient