Get and Post of similarities and differences

Get the similarities and differences and Post
similarities:
1. the parameters can be passed to the server

2. can get the server returns the corresponding

3. The only request made by the client, the server response back. Only to find the server by the client, the server does not exist to find clients

4.HTTP is short (no) connection: send request -> response back -> link is broken immediately so you can support a large number of clients..
Sokect long connection is both client and server continue to stay connected, you can send and receive data for a long time. chat, smart home, unmanned aerial vehicles

Different points:
1.Get generally used for downloading data, post generally used to upload the data actually is because the amount of data get uploaded but is generally limited to 4K post upload unlimited data so upload pictures, mp3, videos, etc..... necessarily need to post requests

2.get method cleartext data (parameters), insecure post puts the argument in the body, and more
secure. ----------------
Copyright: This article is CSDN bloggers " original articles CesareCheung ", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_42760923/article/details/104966106

Guess you like

Origin www.cnblogs.com/CesareZhang/p/12637317.html