[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
Sat Jun 16 06:39:12 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:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 {{{
 $ curl -v http://raphaelhertzog.com/xmlrpc.php
 [...]
 > GET /xmlrpc.php HTTP/1.1

 < HTTP/1.1 200 OK
 [...]
 XML-RPC server accepts POST requests only.
 }}}

 The error returned should be reflected in the HTTP return code: it should
 return HTTP 405 (Method not allowed) instead of 200 (OK).

 This has been originally reported in the Debian bug tracking system:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598124

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


More information about the wp-trac mailing list