Michael Bolz created OLINGO-840:
-----------------------------------
Summary: HTTP HEAD method request results in 501 - Not Implemented
Key: OLINGO-840
URL: https://issues.apache.org/jira/browse/OLINGO-840
Project: Olingo
Issue Type: Bug
Components: odata2-core
Affects Versions: V2 2.0.5
Reporter: Michael Bolz
Assignee: Michael Bolz
Priority: Minor
A {{HTTP HEAD}} method request results in {{501 - Not Implemented}}.
According to OData V2 specification section *2.2.4 HTTP Methods*:
{quote}
...All additional HTTP methods used by this document are specified in
[RFC2616]...
{quote}
and [RFC 2616|https://tools.ietf.org/html/rfc2616] (refer to newer [RFC
7230|https://tools.ietf.org/html/rfc7230] and
[7231|https://tools.ietf.org/html/rfc7231])
in section [7231: Section-4.1|https://tools.ietf.org/html/rfc7231#section-4.1]
{quote}
...
All general-purpose servers MUST support the methods GET and HEAD.
All other methods are OPTIONAL.
...
{quote}
a {{HEAD}} request must not lead to a {{501 - Not implemented}}.
{quote}
+---------+-------------------------------------------------+-------+
| Method | Description | Sec. |
+---------+-------------------------------------------------+-------+
| GET | Transfer a current representation of the target | 4.3.1 |
| | resource. | |
| HEAD | Same as GET, but only transfer the status line | 4.3.2 |
| | and header section. | |
| POST | Perform resource-specific processing on the | 4.3.3 |
| | request payload. | |
| PUT | Replace all current representations of the | 4.3.4 |
| | target resource with the request payload. | |
| DELETE | Remove all current representations of the | 4.3.5 |
| | target resource. | |
| CONNECT | Establish a tunnel to the server identified by | 4.3.6 |
| | the target resource. | |
| OPTIONS | Describe the communication options for the | 4.3.7 |
| | target resource. | |
| TRACE | Perform a message loop-back test along the path | 4.3.8 |
| | to the target resource. | |
+---------+-------------------------------------------------+-------+
{quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)