Well, all I had to do to get this working was change the postPath to include the trailing '/' - perhaps this is obvious to most, but I would love an explanation for the accepted answer.
PHP applications often have misconfigured servers that lose information (like HTTP method) when doing a redirect. In your case, adding the /
resolved to the canonical path for your particular web service, but in redirecting to that endpoint, the POST
was changed into a GET
.
Another way to potentially solve this issue is to use AFURLConnectionOperation -setRedirectResponseBlock
, and ensure that the redirect request has the correct verb.