From 18cd42a79361337a6053647c5095d3806391796b Mon Sep 17 00:00:00 2001 From: wouthoekstra Date: Fri, 5 Jun 2015 17:24:00 +0200 Subject: [PATCH 1/2] Update http_fundamentals.rst Added some nuance to note about PUT and DELETE in modern browsers. --- book/http_fundamentals.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/book/http_fundamentals.rst b/book/http_fundamentals.rst index 3325e101f6d..2efa559d1f7 100644 --- a/book/http_fundamentals.rst +++ b/book/http_fundamentals.rst @@ -98,7 +98,9 @@ delete a specific blog entry, for example: There are actually nine HTTP methods defined by the HTTP specification, but many of them are not widely used or supported. In reality, many modern - browsers don't even support the ``PUT`` and ``DELETE`` methods. + browsers only support ``POST`` and ``GET`` in HTML forms. + The methods ``PUT`` and ``DELETE`` are supported in XMLHttpRequests, + which are commonly used in AJAX calls. In addition to the first line, an HTTP request invariably contains other lines of information called request headers. The headers can supply a wide From 6e697b51e696cf2cc69f19a6fe3a10c7f11138be Mon Sep 17 00:00:00 2001 From: wouthoekstra Date: Mon, 8 Jun 2015 22:31:36 +0200 Subject: [PATCH 2/2] Updated text about HTTP methods --- book/http_fundamentals.rst | 10 +++++----- cookbook/routing/method_parameters.rst | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/book/http_fundamentals.rst b/book/http_fundamentals.rst index 2efa559d1f7..4b4aa363037 100644 --- a/book/http_fundamentals.rst +++ b/book/http_fundamentals.rst @@ -96,11 +96,11 @@ delete a specific blog entry, for example: .. note:: - There are actually nine HTTP methods defined by the HTTP specification, - but many of them are not widely used or supported. In reality, many modern - browsers only support ``POST`` and ``GET`` in HTML forms. - The methods ``PUT`` and ``DELETE`` are supported in XMLHttpRequests, - which are commonly used in AJAX calls. + There are actually nine HTTP methods (also known as verbs) defined by + the HTTP specification, but many of them are not widely used or supported. + In reality, many modern browsers only support ``POST`` and ``GET`` in + HTML forms. Various others are however supported in XMLHttpRequests, + as well as by Symfony's router. In addition to the first line, an HTTP request invariably contains other lines of information called request headers. The headers can supply a wide diff --git a/cookbook/routing/method_parameters.rst b/cookbook/routing/method_parameters.rst index 6da564f18ce..b8ceeaa18a9 100644 --- a/cookbook/routing/method_parameters.rst +++ b/cookbook/routing/method_parameters.rst @@ -83,7 +83,7 @@ Faking the Method with ``_method`` 2.3, use the :ref:`configuration-framework-http_method_override` option. Unfortunately, life isn't quite this simple, since most browsers do not -support sending PUT and DELETE requests. Fortunately, Symfony provides you +support sending PUT and DELETE requests as method in HTML forms. Fortunately, Symfony provides you with a simple way of working around this limitation. By including a ``_method`` parameter in the query string or parameters of an HTTP request, Symfony will use this as the method when matching routes. Forms automatically include a pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy