什么是HTTP方法的默认形式? [英] What is the default form HTTP method?
本文介绍了什么是HTTP方法的默认形式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当提交HTML表单而未指定方法时,使用的默认HTTP方法是什么? GET还是POST?
在HTML标准之间,这种行为是否改变过?
请尽可能引用W3C标准文档。 p>
解决方案
它是GET。 here 。
摘录:
<!ATTLIST FORM
%attrs; - %coreattrs,%i18n,%events -
action%URI; #REQUIRED - 服务器端表单处理程序 -
方法(GET | POST)GET - 用于提交表单的HTTP方法 -
enctype%ContentType; application / x-www-form-urlencoded
accept%ContentTypes; #IMPLIED - 文件上传的MIME类型列表 -
名称CDATA #IMPLIED - 脚本的表单名称 -
onsubmit%Script; #IMPLIED - 表单已提交 -
onreset%Script; #IMPLIED - 表单被重置 -
accept-charset%字符集; #IMPLIED - 支持的字符集列表 -
>
良好阅读
When an HTML form is submitted without specifying a method, what is the default HTTP method used? GET or POST?
Has this behaviour ever changed between HTML standards?
Please cite a W3C standard document if possible.
解决方案
It's GET.
Take a look here.
Excerpt:
<!ATTLIST FORM
%attrs; -- %coreattrs, %i18n, %events --
action %URI; #REQUIRED -- server-side form handler --
method (GET|POST) GET -- HTTP method used to submit the form--
enctype %ContentType; "application/x-www-form-urlencoded"
accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
name CDATA #IMPLIED -- name of form for scripting --
onsubmit %Script; #IMPLIED -- the form was submitted --
onreset %Script; #IMPLIED -- the form was reset --
accept-charset %Charsets; #IMPLIED -- list of supported charsets --
>
Good read
Methods GET and POST in HTML forms - what's the difference?
这篇关于什么是HTTP方法的默认形式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文