Skip to content

Commit

Permalink
Updated text about HTTP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wouthoekstra authored and weaverryan committed Jul 12, 2015
1 parent 46f3665 commit 1bc5228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions book/http_fundamentals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cookbook/routing/method_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bc5228

Please sign in to comment.