search

Home  >  Q&A  >  body text

ios - AFNetworking GET POST 区别 ?

  1. get是从服务器上获取数据,post是向服务器传送数据。 ???
    2.是这样吗?

大家讲道理大家讲道理2892 days ago309

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-17 17:52:21

    You can take a look at this
    http://man.chinaunix.net/develop/rfc/RFC...

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:52:21

    The provisions of the http network protocol PUT GET POST HEAD method obtain different data respectively. In fact, GET and POST are most commonly used. The difference lies in the location of parameter storage. GET needs to add parameters after the URL, and there are different length restrictions according to different browsers. POST needs to wrap parameters or other data in the request body. In the Body, the amount of data realized is obviously more than that of GET. For the specific implementation, I suggest you take a look at the specific use of NSURLSession and NSURLConnection. AFN is implemented based on them

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:52:21

    http://www.nowamagic.net/librarys/veda/d...

    You can read this blog

    Questions like yours are completely out of Baidu, and almost no one will answer them...

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:52:21

    I agree with the above, GET and POST are concepts in the HTTP protocol and have little to do with AFNetworking.

    reply
    0
  • Cancelreply