Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post 和 get 方式的区别? #8

Open
yym-yumeng123 opened this issue Aug 11, 2017 · 0 comments
Open

post 和 get 方式的区别? #8

yym-yumeng123 opened this issue Aug 11, 2017 · 0 comments

Comments

@yym-yumeng123
Copy link
Owner

POST VS GET

  • 表象不同,get把提交的数据url可以看到,post看不到
  • 原理不同,get 是拼接 url, post 是放入http 请求体中
  • 提交数据量不同,get最多提交1k数据,浏览器的限制。post理论上无限制,受服务器限制
  • get提交的数据在浏览器历史记录中,安全性不好
  • 场景不同,get 重在 "要", post 重在"给"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant