[wp-trac] [WordPress Trac] #14786: WP_Http Transport test order refactoring

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 6 22:30:34 UTC 2010


#14786: WP_Http Transport test order refactoring
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                        
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  Awaiting Review       
Component:  HTTP          |     Version:  3.0.1                 
 Severity:  normal        |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [comment:16 jacobsantos]:
 > Also, the Method check in Fopen is wrong. The problem is not the method
 but sending with a body as part of the message. It is possible to send a
 body with GET requests.

 Your statement made me curious and I re-read the HTTP 1.1 RFC according to
 that. I'm referring to this document (collection):

 > A message-body MUST NOT be included in a request if the specification of
 the request method (section 5.1.1) does not allow sending an entity-body
 in requests.
 [http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3 rfc2616
 section 4.3]

 And in section 5.1.1:
 > "GET"                    ; Section 9.3
 [http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1 rfc2616
 section 5.1.1]

 And in section 9.3:
 > The GET method means retrieve whatever information (in the form of an
 entity) is identified by the Request-URI ...
 [http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3 rfc2616
 section 9.3]

 I can not find any hint in 9.3 as the specification of the GET method that
 allows to send a request body. Following the description in section 4.3,
 this means that a message body MUST NOT be included in the GET request.

 From what I can see here is that to include a request body in a get
 request is just violating the HTTP standards. Can you please check for
 yourself again? I might have misread something or you have a source you
 can point to which shows the opposite.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14786#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list