Feature #47137
HTTP method tunneling
Status: | Resolved | Start date: | 2013-04-11 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | Http | |||
Target version: | TYPO3 Flow Base Distribution - 2.0 | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
Due to limited support in browsers or restrictive firewalls, Flow should allow HTTP request methods to be overridden by the client.
For POST requests the request method is overridden if
- a post argument __method is set OR
- if the header X-HTTP-Method-Override is present OR
- if the header X-HTTP-Method is present
(first rule applies in the order specified)
Example DELETE form:
1<form method="POST"> 2 <input type="hidden" name="__method" value="DELETE" /> 3</form>
Related issues
Associated revisions
[FEATURE] HTTP method tunneling
This change allows the HTTP method to be overridden by the client.
This is especially useful for clients that only support a subset of the
supported methods (e.g. browsers).
The request method can be overridden by specifying a ``__method``
argument. Additionally Flow now respects the ``X-HTTP-Method``
respectively ``X-HTTP-Method-Override`` header.
usage::
<form method="POST">
<input type="hidden" name="__method" value="DELETE" />
</form>
Note::
The HTTP request method can only be changed for POST requests
Change-Id: Ibe753ca4bfcc3dc5b579e39fd13af95b79bc1f83
Resolves: #47137
Releases: master, 2.0
[FEATURE] HTTP method tunneling
This change allows the HTTP method to be overridden by the client.
This is especially useful for clients that only support a subset of the
supported methods (e.g. browsers).
The request method can be overridden by specifying a ``__method``
argument. Additionally Flow now respects the ``X-HTTP-Method``
respectively ``X-HTTP-Method-Override`` header.
usage::
<form method="POST">
<input type="hidden" name="__method" value="DELETE" />
</form>
Note::
The HTTP request method can only be changed for POST requests
Change-Id: Ibe753ca4bfcc3dc5b579e39fd13af95b79bc1f83
Resolves: #47137
Releases: master, 2.0
History
#1 Updated by Gerrit Code Review over 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19800
#2 Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19800
#3 Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19800
#4 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/20014
#5 Updated by Bastian Waidelich over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f5b5024bdb618b5b018188ea16bd138490a02b1c.