Skip to content
Browse files

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
  • Loading branch information...
1 parent 58d2b68 commit 79dd43afe6eaa27a3e2a4ec1d31e2698bf832b28 @nijel nijel committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 libraries/error_report.lib.php
View
1 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);

0 comments on commit 79dd43a

Please sign in to comment.
Something went wrong with that request. Please try again.