Site icon ivucica blog

NSURLConnection submits GET instead of POST with HTTP 301 Moved Permanently error

If NSURLConnection seems to submit via GET instead of via POST, you may want to check whether server responded with HTTP 301 code. It appears that NSURLConnection forgets all about having to POST if it’s redirected. Strange.

Note that I’m currently using RestKit, so it may be a bug in RestKit, too. Doesn’t seem that way.


via blog.vucica.net