为什么GET方法比POST快? [英] Why GET method is faster than POST?

查看:205
本文介绍了为什么GET方法比POST快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是新的网页编程,只是好奇,想知道生根粉获取和发送从一个网页数据到另一个页面的邮政法。

I am just new to web programming and just curious to know abt Get and Post methods of sending data from one page to another page.

有人说,找方法比邮政快,但我不知道为什么会
一个原因,我能找到的是获取只能取255个字符呢?
是否有其他原因,请有人解释我?

It is said that Get method is faster than Post but i don't know why is it one reason i could find is that Get can take only 255 chars with it? Is there any other reasons , please someone explain me?

推荐答案

这不是太多关于速度。有很多情况下,如果POST更为适用。例如,搜索引擎将索引GET URL和浏览器可以书签他们,让他们在历史上出现。其结果是,如果你把像修改基于GET请求一个DB的动作,这可能是有害的一些机器人也可能穿越的URL。

It's not much about speed. There are plenty of cases where POST is more applicable. For example, search engines will index GET URLs and browsers can bookmark them and make them show up in history. As a result, if you take actions like modifying a DB based on a GET request, it might be harmful as some bots might also traverse the URL.

其他的情况下也能安全问题。如果您发布使用GET凭据,它会得到列在浏览器历史记录和服务器日志文件。

The other case can be security issue. If you post credentials using GET, it'll get listed in browser history and server log files.

这篇关于为什么GET方法比POST快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆