From ab7e68c4469e26439839df3ba07139c5488712cf Mon Sep 17 00:00:00 2001 From: chenwei Date: Fri, 25 Nov 2011 20:32:59 +0800 Subject: [PATCH] fix POST method params not right problem --- ba-simple-proxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ba-simple-proxy.php b/ba-simple-proxy.php index b1fa6e8..1fb97be 100644 --- a/ba-simple-proxy.php +++ b/ba-simple-proxy.php @@ -161,7 +161,7 @@ if ( strtolower($_SERVER['REQUEST_METHOD']) == 'post' ) { curl_setopt( $ch, CURLOPT_POST, true ); - curl_setopt( $ch, CURLOPT_POSTFIELDS, $_POST ); + curl_setopt( $ch, CURLOPT_POSTFIELDS, file_get_contents("php://input") ); } if ( $_GET['send_cookies'] ) {