[wp-trac] [WordPress Trac] #8726: cron implementation uses POST method instead of GET method

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 26 13:49:36 GMT 2008


#8726: cron implementation uses POST method instead of GET method
----------------------------+-----------------------------------------------
 Reporter:  patpro          |       Owner:  anonymous
     Type:  defect (bug)    |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:  2.7      
 Severity:  major           |    Keywords:           
----------------------------+-----------------------------------------------
 '''Background''':
 On my server, I use an antispam system that requires you to provide proper
 credentials before you can use the POST method. Only users with regular
 client software can POST to my webserver.

 '''Problem''':
 Since the release of WordPress 2.7, the cron implementation (file wp-
 includes/cron.php) has switched from GET to POST. As WordPress is not a
 regular web browser, it's impossible for it to use POST successfully on my
 server (or on any server requiring credentials before allowing POST).

 '''Solution''':
 Switch back to GET by using wp_remote_get instead of wp_remote_post.
 By the way, $_POST is empty, so there is no reason to use POST method.

 '''Note''':
 Possibility exists that wp_remote_post is used else where in the code to
 trigger local actions. This should be changed to GET unless POST is
 absolutely necessary (and then, it should be documented).

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


More information about the wp-trac mailing list