Skip to content

Commit

Permalink
minor #5352 Update http_fundamentals.rst (wouthoekstra)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #5352).

Discussion
----------

Update http_fundamentals.rst

Modern browsers do support PUT and DELETE, see for example http://stackoverflow.com/questions/165779/are-the-put-delete-head-etc-methods-available-in-most-web-browsers.

Commits
-------

1bc5228 Updated text about HTTP methods
46f3665 Update http_fundamentals.rst
  • Loading branch information
weaverryan committed Jul 12, 2015
2 parents ab84dfc + 1bc5228 commit a02aa62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions book/http_fundamentals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +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 don't even support the ``PUT`` and ``DELETE`` methods.
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 a02aa62

Please sign in to comment.