From 79dd43afe6eaa27a3e2a4ec1d31e2698bf832b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 17 Oct 2013 10:18:39 +0200 Subject: [PATCH] Fixed error submission using curl The problem is that curl inserts Expect: header which server does not support. More details at: http://pilif.github.io/2007/02/the-return-of-except-100-continue/ http://stackoverflow.com/questions/3755786/php-curl-post-request-and-error-417 --- libraries/error_report.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/error_report.lib.php b/libraries/error_report.lib.php index d2bd450b61..53f6d9ccc9 100644 --- a/libraries/error_report.lib.php +++ b/libraries/error_report.lib.php @@ -146,6 +146,7 @@ function PMA_sendErrorReport($report) { } } curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, "POST"); + curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Expect:')); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $data_string); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($curl_handle);