什么是HTTP'方法'资本最佳实践? [英] What are HTTP 'method' capitalization best practices?

查看:95
本文介绍了什么是HTTP'方法'资本最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到以全部大写字母和全部小写字母书写的HTTP方法。是否有任何理由要在form元素的method属性中写< POST 而不是 post ,for例子?

I have seen HTTP methods written in all caps and in all lowercase letters. Is there any reason why you would want to write POST rather than post in the method attribute of a form element, for example?

一些浏览器处理大写字母 POST GET 不同于小写发布获得

Do some browsers handle capitalized POST and GET differently than lowercase post and get?

推荐答案

HTML5规范要求使用get或post。

The HTML5 spec requires to use "get" or "post".

这篇关于什么是HTTP'方法'资本最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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