The hypertext transfer protocol (HTTP) defines four basic operations, corresponding to the four verbs get, post, put, and delete. These refer to operations between a client computer (typically running a web browser such as Firefox or Safari) and a server (typically running a web server such as Apache or Nginx). (It’s important to understand that, when developing Rails applications on a local computer, the client and server are the same physical machine, but in general they are different.) An emphasis on HTTP verbs is typical of web frameworks (including Rails) influenced by the REST architecture, which we saw briefly in Chapter 2 and will start learning about more in Chapter 7.
GET is the most common HTTP operation, used for reading data on the web; it just means “get a page”, and every time you visit a site like google.com or wikipedia.org your browser is submitting a GET request. POST is the next most common operation; it is the request sent by your browser when you submit a form. In Rails applications, POST requests are typically used for creating things (although HTTP also allows POST to perform updates); for example, the POST request sent when you submit a registration form creates a new user on the remote site. The other two verbs, PUT and DELETE, are designed for updating and destroying things on the remote server. These requests are less common than GET and POST since browsers are incapable of sending them natively, but some web frameworks (including Ruby on Rails) have clever ways of making it seem like browsers are issuing such requests.
分享到:
相关推荐
`get-pip.py`是一个Python脚本,它的主要作用是为没有预装`pip`的Python环境安装`pip`。在Python 2.7中,由于某些系统可能没有默认提供`pip`,或者`pip`版本过低,`get-pip.py`就显得非常有用。这个脚本可以下载并...
get-docker.sh docker安装脚本,可直接执行 sh get-docker.sh --mirror Aliyun 安装
get-pip.py: python包管理器。下载完成后,执行命令:sudo python get-pip.py完成安装。可以用此管理器进行python包的安装。
此docker安装脚本为官方提供的,可以从网上下载,此处直接上传。安装docker客户端,get-docker.sh
事先安装了anaconda3版本,此时想要安装pip3,需要: ...下载这个文件,将文本存到本地,命名为get_pip.py. 然后通过已经安装的python3解释执行这个文件: $python3 /路径/get_pip.py pip3 安装完成。
pip安装脚本 get-pip.py
Filename.....: Get.Smart.1965.S01E30.The.Last.One.In.Is.A.Rotten.Spy.avi Filesize.....: 183,820,288 bytes Runtime......: 25:25.762 (36582 frames) Video Codec..: XviD 1.1.2 Final (B-VOP//) Video Bit...
get-pip.py 安装pip
get-pip.py下载包
pip是python语言相应包的安装工具,你在安装如python库如 pika时需要 python-pip工具,先要安装 python-pip,这是安转的python脚本,执行 sudo python get-pip.py 就安装了pip sudo python3 get-pip.py 就安装pip3
Django 中request.get和request.post的区别 POST和GET差异: POST和GET是HTTP协议定义的与服务器交互的方法。GET一般用于获取/查询资源信息,而POST一般用于更新资源信息。另外,还有PUT和DELETE方法。 POST和GET都...
2019-12-26最新get-pip.py文件。网速原因放在这里。 执行 `python get-pip.py`之后得到的这个东西。