Is this statement correct? HTTP GET method always has no message body -
is statement correct? http method has no message body. didn't find part of rfc2616 explicitly this.
and if not true, in circumstances http request include message body
neither restclient nor rest console support curl does.
the http specification says in section 4.3
a message-body must not included in request if specification of request method (section 5.1.1) not allow sending entity-body in requests.
section 5.1.1 redirects section 9.x various methods. none of them explicitly prohibit inclusion of message body. however...
section 5.2 says
the exact resource identified internet request determined examining both request-uri , host header field.
and section 9.3 says
the method means retrieve whatever information (in form of entity) identified request-uri.
which suggest when processing request, server not required examine other request-uri , host header field.
in summary, http spec doesn't prevent sending message-body there sufficient ambiguity wouldn't surprise me if not supported servers.
Comments
Post a Comment