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.

-=-
Tip me with Bitcoin to: 1ASA9q5VQUxPZvit8X2AP4JYzPcSDk7dFV or using ChangeTip (button below)


Leave a Reply

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