`
斌-黄
  • 浏览: 41864 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

GET, et cet.

阅读更多
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

    $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本 $ sudo python get-pip.py # 运行安装脚本

    Get.Smart.Season 1.srt

    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

    事先安装了anaconda3版本,此时想要安装pip3,需要:  ...下载这个文件,将文本存到本地,命名为get_pip.py. 然后通过已经安装的python3解释执行这个文件:  $python3 /路径/get_pip.py pip3 安装完成。

    get-docker.sh docker安装脚本

    get-docker.sh docker安装脚本,可直接执行 sh get-docker.sh --mirror Aliyun 安装

    get-pip.py 安装pip

    get-pip.py 安装pip

    对Django 中request.get和request.post的区别详解

    Django 中request.get和request.post的区别 POST和GET差异: POST和GET是HTTP协议定义的与服务器交互的方法。GET一般用于获取/查询资源信息,而POST一般用于更新资源信息。另外,还有PUT和DELETE方法。 POST和GET都...

    python2.7中所用的get-pip.py文件+安装方法

    python2.7中所用的pip,大家快来下载啦啦啦啦啦!!!!

    get-docker.sh

    此docker安装脚本为官方提供的,可以从网上下载,此处直接上传。安装docker客户端,get-docker.sh

    pip安装脚本 get-pip.py

    pip安装脚本 get-pip.py

    2019-12-26最新get-pip.py文件

    2019-12-26最新get-pip.py文件。网速原因放在这里。 执行 `python get-pip.py`之后得到的这个东西。

    get-pip.py下载包

    get-pip.py下载包

    GetIP PB获取IP的DLL

    Function uLong Gethost(ref string hostname) Library "GetIP60.dll" ALIAS FOR "Gethost;ansi" 调用方法 string ls_Host = space(256) int result result = Gethost(ls_Host) if result =0 then sle_1.text=...

    get-pip.zip

    get-pip.py脚本,便于下载使用,用于linux安装pip使用,下载容易失败,特上传一份,有需要的小伙伴直接获取即可,解压密码pipget

Global site tag (gtag.js) - Google Analytics