iThemes Security (formerly Better WP Security)
Better WP Security and file_get_contents('php://input'). (2 posts)

  1. David J Prokopetz
    Posted 2 years ago #

    Heya, folks.

    I'm having a bit of a compatibility issue with Better WP Security and a couple of plugins that use RESTful operations. In a nutshell, it looks like when Better WP Security is enabled, file_get_contents('php://input') always returns an empty string. This is a problem, because file_get_contents('php://input') is currently the only way to retrieve the query data for PUT and DELETE operations. Is there any way to get around this limitation?


    - Dave.

    (Since I'm sure that someone is about to suggest re-coding the affected plugins to only use GET and POST operations, let me head that one off right now; it's not necessarily a bad suggestion, but it's not a feasible one in this particular situation.)


  2. Jacotheron
    Posted 2 years ago #

    Hi David

    Please see my post at http://wordpress.org/support/topic/file_get_contents-phpinput-and-xml-rpc-not-working-fix?replies=1#post-4070391 Regarding your issue (I have a possible fix).


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic