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

Leave a Reply

Your email address will not be published. Required fields are marked *


What is 2 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

This site uses Akismet to reduce spam. Learn how your comment data is processed.