Q1:405 Request error encountered. Tips:
Nslocalizeddescription=request Failed:method not allowed (405).
Solution: 405 The request method is not allowed. You should check that the request method is correct and the page should use a GET request or a POST request. For example, while requesting a microblog access_token, it does not need to send data but this page requires a POST request.
Q2: HTTP request with Afnetwork encountered the following error message:
Nslocalizeddescription=request failed:unacceptable
Content-type:text/plain.
Solution: The error message here is because the Afhttprequestoperationmanager default HTTP request header does not contain the Text/plain format. should use
Manager.responseSerializer.acceptableContentTypes = [Manager.responseSerializer.acceptableContentTypes setbyaddingobject:@ "Text/plain"]; manually added. Of course, there may also be text/html types. The solution is similarly added manually.
Turn from:
http://blog.csdn.net/cnlf14/article/details/44997111
Today you encounter Request Failed:method not allowed (405). Error, and I hereby turn over the Internet.