[wp-trac] [WordPress Trac] #62717: POST request to pages returns 200 or 404

WordPress Trac noreply at wordpress.org
Sat Dec 21 00:32:21 UTC 2024


#62717: POST request to pages returns 200 or 404
-------------------------------+------------------------------
 Reporter:  prestonwordsworth  |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  HTTP API           |     Version:  6.7.1
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by prestonwordsworth):

 This is very helpful to know – thank you @abcd95!

 > Empty POST requests are treated as GET requests, returning a 200 status
 with page content.

 If this is intended to be used for cache invalidation, I hope there’s a
 way to prevent POST flood cache bypass attacks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62717#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list