[wp-trac] [WordPress Trac] #20986: xmlrpc.php should return http 405 for get requests (and not 200)

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 19 15:51:19 UTC 2012


#20986: xmlrpc.php should return http 405 for get requests (and not 200)
--------------------------+------------------------------
 Reporter:  rhertzog      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by maxcutler):

 Replying to [comment:3 josephscott]:
 > @maxcutler - I don't think we should hard code HTTP 1.1 as the response.
 Will HTTP 1.0 clients freak out if we do that?

 Valid question. I was just following examples of similar behavior
 elsewhere in core.

 * /wp-comments-post.php at L10
 * /wp-includes/class-wp-atom-server.php (multiple)

 Maybe there should be a core API for this that is smarter, like found in
 load.php at L163-168?

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


More information about the wp-trac mailing list