Learn the difference between crawlers, get and post requests - what you need to know

insert image description here

get and post are two basic methods of http request

The most intuitive difference is that get includes parameters in the url and
post passes the parameters through the request body.

  1. get is harmless when the browser rolls back, and post will submit the request again

  2. get requests can only be url encoded, while post supports multiple encoding methods

  3. The parameters sent in the url of the get request are limited in length, while the post does not

  4. get is less secure than post, because the parameters are directly exposed on the url, so it cannot be used to transmit sensitive information (in fact, if you know the packet capture, both methods are not safe)
    insert image description here

At the end, I recommend a very good learning tutorial to everyone, I hope it will help you learn Python!
Python crawler case tutorial recommendation

Guess you like

Origin blog.csdn.net/m0_67575344/article/details/123763446